AssetSourceId Class

Represents a unique identifier for an asset directory

Inheritance Hierarchy

Syntax

public sealed class AssetSourceId : System.ValueType, IEquatable<T>

Constructors

Name Description
AssetSourceId(string idString)

Initializes a new instance of the AssetSourceId struct.

Properties

Name Description
Format

Gets the ID format.

Methods

Name Description
Equals(object obj)
GetAllAssetSourcesAsync(Inedo.Extensibility.Credentials.ICredentialResolutionContext context, System.Threading.CancellationToken cancellationToken)
GetAssetDirectoryName

Returns the asset directory name if Format is AssetSourceIdFormat.ProGetAssetDirectory; otherwise throws.

GetHashCode
GetProGetServiceCredentialName

Returns the credential name if Format is AssetSourceIdFormat.ProGetAssetDirectory; otherwise throws.

GetResourceName

Returns the asset directory name if Format is AssetSourceIdFormat.ProGetAssetDirectory; otherwise throws.

ToString

Remarks

This effectively wraps a string that can take one of two formats and provides helper methods.

Example strings include:

Strings with a "/" are a ProGetServiceCredential name + Asset Directory, and "feed::" is shorthand for "global::ProGet/"