Represents a unique identifier for a package source, which can be a URL, SecureResource, or ProGet Feed.
Name | Description | |
---|---|---|
PackageSourceId(string idString) |
Initializes a new instance of the PackageSourceId struct. |
Name | Description | |
---|---|---|
Format |
Gets the ID format. |
Name | Description | |
---|---|---|
Equals(object obj) | ||
GetFeedName |
Returns the feed name if Format is PackageSourceIdFormat.ProGetFeed; otherwise throws. |
|
GetHashCode | ||
GetProGetServiceCredentialName |
Returns the credential name if Format is PackageSourceIdFormat.ProGetFeed; otherwise throws. |
|
GetResourceName |
Returns the feed name if Format is PackageSourceIdFormat.SecureResource; otherwise throws. |
|
GetUrl |
Returns the URL if Format is PackageSourceIdFormat.Url; otherwise throws. |
|
ToString |
This effectively wraps a string that can take one of three formats and provides helper methods.
Example strings include:
https://www.myget.org/F/imageprocessor/api/v3/index.json [Format=Url]
global::ProGet/MyFeedName [Format=ProGetFeed]
feed::MyFeedName [Format=ProGetFeed]
global::ProGetOtherInstance/MyOtherFeedName [Format=ProGetFeed]
MyNuGetOrgResource [Format=SecureResource]