Interface IPackageService
Service to manage packages (Package)
public interface IPackageService
Methods
DownloadPackageAsync(string, string)
Downloads a specific package as .nupkg file
Task DownloadPackageAsync(string packageId, string version)
Parameters
packageId
stringversion
string
Returns
- Task
GetPackageAsync(string, string, bool)
Returns a specific package
Task<Package> GetPackageAsync(string packageId, string version, bool download)
Parameters
packageId
stringversion
stringdownload
bool
Returns
- Task<Package>
GetPackageUpdatesAsync(string)
Returns a list of packages based on installationid
Task<List<Package>> GetPackageUpdatesAsync(string type)
Parameters
type
string
Returns
- Task<List<Package>>
GetPackagesAsync(string)
Returns a list of packages matching the given parameters
Task<List<Package>> GetPackagesAsync(string type)
Parameters
type
string
Returns
- Task<List<Package>>
GetPackagesAsync(string, string, string, string)
Returns a list of packages matching the given parameters
Task<List<Package>> GetPackagesAsync(string type, string search, string price, string package)
Parameters
type
stringsearch
stringprice
stringpackage
string
Returns
- Task<List<Package>>
GetPackagesAsync(string, string, string, string, string)
Returns a list of packages matching the given parameters
Task<List<Package>> GetPackagesAsync(string type, string search, string price, string package, string sort)
Parameters
type
stringsearch
stringprice
stringpackage
stringsort
string
Returns
- Task<List<Package>>
InstallPackagesAsync()
Installs all packages located in //TODO: 2dm where?
Task InstallPackagesAsync()
Returns
- Task