Table of Contents

Interface IPackageService

Namespace
Oqtane.Services
Assembly
Oqtane.Client.dll

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 string
version string

Returns

Task

GetPackageAsync(string, string, bool)

Returns a specific package

Task<Package> GetPackageAsync(string packageId, string version, bool download)

Parameters

packageId string
version string
download 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 string
search string
price string
package 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 string
search string
price string
package string
sort string

Returns

Task<List<Package>>

InstallPackagesAsync()

Installs all packages located in //TODO: 2dm where?

Task InstallPackagesAsync()

Returns

Task