Class ProjectCacheNuGet
Managing cache of the project
Inheritance
object
ProjectCacheNuGet
Namespace: BuildSystem.ProjectCache.NuGet
Assembly: BuildSystem.Core.dll
Syntax
public class ProjectCacheNuGet : Object, IProjectCache, IManager
Constructors
ProjectCacheNuGet(ILogger?, ProjectCacheNuGetProps, string)
Managing cache of the project
Declaration
public ProjectCacheNuGet(ILogger? logger, ProjectCacheNuGetProps props, string tempDir)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | Logging object |
ProjectCacheNuGetProps | props | Properties of creating object |
string | tempDir | Path to folder where temporary folders can be created |
Fields
ClassIdent
Unique ident of class
Declaration
public const string ClassIdent = "ProjectCache.NuGet"
Field Value
Type | Description |
---|---|
string |
Properties
Logger
Declaration
public ILogger? Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Props
Declaration
public IManagerProp Props { get; }
Property Value
Type | Description |
---|---|
IManagerProp |
Methods
Clean(string, string, List<IPackageProps>)
Clean cache info
Declaration
public void Clean(string projectIdent, string variantName, List<IPackageProps> packagePropsList)
Parameters
Type | Name | Description |
---|---|---|
string | projectIdent | |
string | variantName | |
System.Collections.Generic.List<><IPackageProps> | packagePropsList |
Read(string, string, List<IPackageProps>)
Read files and fill info object
Declaration
public CacheProjectInfo Read(string projectIdent, string variantName, List<IPackageProps> packagePropsList)
Parameters
Type | Name | Description |
---|---|---|
string | projectIdent | Ident to calculate path to file |
string | variantName | Unique name of group of settings |
System.Collections.Generic.List<><IPackageProps> | packagePropsList | Properties provided to package manager |
Returns
Type | Description |
---|---|
CacheProjectInfo |
Save(string, string, CacheProjectInfo?, List<IPackageProps>)
We unable to save into NuGet repository, so we cn only save cache in local file, if TempDir is set
Declaration
public void Save(string projectIdent, string variantName, CacheProjectInfo? projectInfo, List<IPackageProps> packagePropsList)
Parameters
Type | Name | Description |
---|---|---|
string | projectIdent | |
string | variantName | |
CacheProjectInfo | projectInfo | |
System.Collections.Generic.List<><IPackageProps> | packagePropsList |