Class NuGetService
Inheritance
object
NuGetService
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public class NuGetService : ITransientDependency
Constructors
NuGetService(IJsonSerializer, IRemoteServiceExceptionHandler, ICancellationTokenProvider, IApiKeyService, CliHttpClientFactory)
Declaration
public NuGetService(IJsonSerializer jsonSerializer, IRemoteServiceExceptionHandler remoteServiceExceptionHandler, ICancellationTokenProvider cancellationTokenProvider, IApiKeyService apiKeyService, CliHttpClientFactory cliHttpClientFactory)
Parameters
Properties
CancellationTokenProvider
Declaration
protected ICancellationTokenProvider CancellationTokenProvider { get; }
Property Value
JsonSerializer
Declaration
protected IJsonSerializer JsonSerializer { get; }
Property Value
Logger
Declaration
public ILogger<VoloNugetPackagesVersionUpdater> Logger { get; set; }
Property Value
RemoteServiceExceptionHandler
Declaration
protected IRemoteServiceExceptionHandler RemoteServiceExceptionHandler { get; }
Property Value
Methods
GetLatestVersionOrNullAsync(string, bool, bool)
Declaration
public Task<SemanticVersion> GetLatestVersionOrNullAsync(string packageId, bool includeNightly = false, bool includeReleaseCandidates = false)
Parameters
| Type |
Name |
Description |
| string |
packageId |
|
| bool |
includeNightly |
|
| bool |
includeReleaseCandidates |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><NuGet.Versioning.SemanticVersion> |
|
GetPackageVersionListAsync(string, bool)
Declaration
public Task<List<string>> GetPackageVersionListAsync(string packageId, bool includeNightly = false)
Parameters
| Type |
Name |
Description |
| string |
packageId |
|
| bool |
includeNightly |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Collections.Generic.List<T><string>> |
|
PackageExistAsync(string, string)
Declaration
public Task<bool> PackageExistAsync(string packageId, string version = null)
Parameters
| Type |
Name |
Description |
| string |
packageId |
|
| string |
version |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><bool> |
|
Implements
Extension Methods