C# Class Drey.Server.Services.PackageService

Inheritance: IPackageService
Afficher le fichier Open project: dealproc/Drey

Méthodes publiques

Méthode Description
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.

Method Details

DeleteAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

GetPackagesAsync() public méthode

Gets an aggregate list of packages within the system.
public GetPackagesAsync ( ClaimsPrincipal principal = null ) : Task>
principal System.Security.Claims.ClaimsPrincipal
Résultat Task>

GetReleaseAsync() public méthode

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
Résultat Task

GetReleasesAsync() public méthode

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
Résultat Task>

PackageService() public méthode

public PackageService ( IReleaseStore releaseStore, IFileService fileService ) : NuGet
releaseStore IReleaseStore
fileService IFileService
Résultat NuGet

SyndicateAsync() public méthode

Syndicates the nupkg stream for use within the system.
public SyndicateAsync ( Stream stream ) : Task
stream Stream The stream.
Résultat Task