Class PackageUpdateResource
- Namespace
- NuGet.Protocol.Core.Types
- Assembly
- NuGet.Protocol.dll
public class PackageUpdateResource : INuGetResource
- Inheritance
-
PackageUpdateResource
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
PackageUpdateResource(string, HttpSource)
public PackageUpdateResource(string source, HttpSource httpSource)
Parameters
source
string
httpSource
HttpSource
Properties
Settings
public ISettings Settings { get; set; }
Property Value
- ISettings
SourceUri
public Uri SourceUri { get; }
Property Value
- Uri
Methods
Delete(string, string, Func<string, string>, Func<string, bool>, bool, ILogger)
public Task Delete(string packageId, string packageVersion, Func<string, string> getApiKey, Func<string, bool> confirm, bool noServiceEndpoint, ILogger log)
Parameters
packageId
string
packageVersion
string
getApiKey
Func<string, string>
confirm
Func<string, bool>
noServiceEndpoint
bool
log
ILogger
Returns
- Task
Delete(string, string, Func<string, string>, Func<string, bool>, bool, bool, ILogger)
public Task Delete(string packageId, string packageVersion, Func<string, string> getApiKey, Func<string, bool> confirm, bool noServiceEndpoint, bool allowInsecureConnections, ILogger log)
Parameters
packageId
string
packageVersion
string
getApiKey
Func<string, string>
confirm
Func<string, bool>
noServiceEndpoint
bool
allowInsecureConnections
bool
log
ILogger
Returns
- Task
ForceDeleteDirectory(string)
public static void ForceDeleteDirectory(string path)
Parameters
path
string
Push(IList<string>, string, int, bool, Func<string, string>, Func<string, string>, bool, bool, SymbolPackageUpdateResourceV3, ILogger)
public Task Push(IList<string> packagePaths, string symbolSource, int timeoutInSecond, bool disableBuffering, Func<string, string> getApiKey, Func<string, string> getSymbolApiKey, bool noServiceEndpoint, bool skipDuplicate, SymbolPackageUpdateResourceV3 symbolPackageUpdateResource, ILogger log)
Parameters
packagePaths
IList<string>
symbolSource
string
timeoutInSecond
int
disableBuffering
bool
getApiKey
Func<string, string>
getSymbolApiKey
Func<string, string>
noServiceEndpoint
bool
skipDuplicate
bool
symbolPackageUpdateResource
SymbolPackageUpdateResourceV3
log
ILogger
Returns
- Task
Push(IList<string>, string, int, bool, Func<string, string>, Func<string, string>, bool, bool, SymbolPackageUpdateResourceV3, bool, ILogger)
public Task Push(IList<string> packagePaths, string symbolSource, int timeoutInSecond, bool disableBuffering, Func<string, string> getApiKey, Func<string, string> getSymbolApiKey, bool noServiceEndpoint, bool skipDuplicate, SymbolPackageUpdateResourceV3 symbolPackageUpdateResource, bool allowInsecureConnections, ILogger log)
Parameters
packagePaths
IList<string>
symbolSource
string
timeoutInSecond
int
disableBuffering
bool
getApiKey
Func<string, string>
getSymbolApiKey
Func<string, string>
noServiceEndpoint
bool
skipDuplicate
bool
symbolPackageUpdateResource
SymbolPackageUpdateResourceV3
allowInsecureConnections
bool
log
ILogger
Returns
- Task
Push(string, string, int, bool, Func<string, string>, Func<string, string>, bool, ILogger)
[Obsolete("Consolidating to one PackageUpdateResource.Push method which has all parameters defined.")]
public Task Push(string packagePath, string symbolSource, int timeoutInSecond, bool disableBuffering, Func<string, string> getApiKey, Func<string, string> getSymbolApiKey, bool noServiceEndpoint, ILogger log)
Parameters
packagePath
string
symbolSource
string
timeoutInSecond
int
disableBuffering
bool
getApiKey
Func<string, string>
getSymbolApiKey
Func<string, string>
noServiceEndpoint
bool
log
ILogger
Returns
- Task
Push(string, string, int, bool, Func<string, string>, Func<string, string>, bool, bool, SymbolPackageUpdateResourceV3, ILogger)
[Obsolete("Use Push method which takes multiple package paths.")]
public Task Push(string packagePath, string symbolSource, int timeoutInSecond, bool disableBuffering, Func<string, string> getApiKey, Func<string, string> getSymbolApiKey, bool noServiceEndpoint, bool skipDuplicate, SymbolPackageUpdateResourceV3 symbolPackageUpdateResource, ILogger log)
Parameters
packagePath
string
symbolSource
string
timeoutInSecond
int
disableBuffering
bool
getApiKey
Func<string, string>
getSymbolApiKey
Func<string, string>
noServiceEndpoint
bool
skipDuplicate
bool
symbolPackageUpdateResource
SymbolPackageUpdateResourceV3
log
ILogger
Returns
- Task