KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.NodeManager.Launcher.Utils.PackageUtils Class Reference

Helper methods to work with nuget packages More...

Static Public Member Functions

static async Task< Dictionary< PackageIdentity, IEnumerable< string > > > Install (this IEnumerable< PackageIdentity > packages, string runtime, NuGetFramework framework, string nugetUrl, string directoryToInstall, Action< string > logAction=null)
 Installs specified packages to specified place More...
 
static async Task< IPackageSearchMetadata > Search (string nugetUrl, string id, NuGetVersion version)
 Searches for a specific package More...
 
static async Task< List< IPackageSearchMetadata > > Search (string repository, string terms)
 Get the list of package descriptions More...
 

Detailed Description

Helper methods to work with nuget packages

Definition at line 34 of file PackageUtils.cs.

Member Function Documentation

◆ Install()

static async Task<Dictionary<PackageIdentity, IEnumerable<string> > > KlusterKite.NodeManager.Launcher.Utils.PackageUtils.Install ( this IEnumerable< PackageIdentity >  packages,
string  runtime,
NuGetFramework  framework,
string  nugetUrl,
string  directoryToInstall,
Action< string >  logAction = null 
)
static

Installs specified packages to specified place

Parameters
packagesThe list of packages to install
runtimeThe current runtime
frameworkThe target framework to install
nugetUrlThe url of nuget repository
directoryToInstallThe directory to install packages contents
logActionThe log writing action
Returns
The list of installed files for each package

Definition at line 75 of file PackageUtils.cs.

◆ Search() [1/2]

static async Task<IPackageSearchMetadata> KlusterKite.NodeManager.Launcher.Utils.PackageUtils.Search ( string  nugetUrl,
string  id,
NuGetVersion  version 
)
static

Searches for a specific package

Parameters
nugetUrlThe nuget server address
idThe package id
versionThe package version.
Returns
The package metadata

Definition at line 166 of file PackageUtils.cs.

◆ Search() [2/2]

static async Task<List<IPackageSearchMetadata> > KlusterKite.NodeManager.Launcher.Utils.PackageUtils.Search ( string  repository,
string  terms 
)
static

Get the list of package descriptions

Parameters
repositoryThe package repository
termsThe search terms
Returns
The list of package descriptions

Definition at line 214 of file PackageUtils.cs.


The documentation for this class was generated from the following file: