C# Class Drey.Server.Services.PackageService

Inheritance: IPackageService
Show file Open project: dealproc/Drey

Public Methods

Method 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 method

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.
return System.Threading.Tasks.Task

GetPackagesAsync() public method

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

GetReleaseAsync() public method

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
return Task

GetReleasesAsync() public method

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
return Task>

PackageService() public method

public PackageService ( IReleaseStore releaseStore, IFileService fileService ) : NuGet
releaseStore IReleaseStore
fileService IFileService
return NuGet

SyndicateAsync() public method

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