C# Класс Drey.Server.Services.PackageService

Наследование: IPackageService
Показать файл Открыть проект

Открытые методы

Метод Описание
DeleteAsync ( string id, string version ) : System.Threading.Tasks.Task

Deletes the requested package/version from storage.

GetPackagesAsync ( ClaimsPrincipal principal = null ) : Task>

Gets an aggregate list of packages within the system.

GetReleaseAsync ( string id, string version, ClaimsPrincipal principal = null ) : Task

Retrieves the nupkg based on its id and version, and prepares the nupkg for download by the client.

GetReleasesAsync ( string id, ClaimsPrincipal principal = null ) : Task>

Retrieves all known releases, based on a package id.

PackageService ( IReleaseStore releaseStore, IFileService fileService ) : NuGet
SyndicateAsync ( Stream stream ) : Task

Syndicates the nupkg stream for use within the system.

Описание методов

DeleteAsync() публичный Метод

Deletes the requested package/version from storage.
Package id/version does not exist.
public DeleteAsync ( string id, string version ) : System.Threading.Tasks.Task
id string The identifier.
version string The version.
Результат System.Threading.Tasks.Task

GetPackagesAsync() публичный Метод

Gets an aggregate list of packages within the system.
public GetPackagesAsync ( ClaimsPrincipal principal = null ) : Task>
principal System.Security.Claims.ClaimsPrincipal
Результат Task>

GetReleaseAsync() публичный Метод

Retrieves the nupkg based on its id and version, and prepares the nupkg for download by the client.
public GetReleaseAsync ( string id, string version, ClaimsPrincipal principal = null ) : Task
id string The identifier.
version string The version.
principal System.Security.Claims.ClaimsPrincipal
Результат Task

GetReleasesAsync() публичный Метод

Retrieves all known releases, based on a package id.
public GetReleasesAsync ( string id, ClaimsPrincipal principal = null ) : Task>
id string The identifier.
principal System.Security.Claims.ClaimsPrincipal
Результат Task>

PackageService() публичный Метод

public PackageService ( IReleaseStore releaseStore, IFileService fileService ) : NuGet
releaseStore IReleaseStore
fileService IFileService
Результат NuGet

SyndicateAsync() публичный Метод

Syndicates the nupkg stream for use within the system.
public SyndicateAsync ( Stream stream ) : Task
stream Stream The stream.
Результат Task