Class ReclaimerStrategyDelegateProps
Strategy to make retention of packages which works with delegate. In this delegate we can write our own rules
Inheritance
object
ReclaimerStrategyDelegateProps
Implements
Namespace: BuildSystem.Reclaimer.Strategy.Delegate
Assembly: BuildSystem.Factories.dll
Syntax
public class ReclaimerStrategyDelegateProps : Object, IReclaimerStrategyProps
Constructors
ReclaimerStrategyDelegateProps()
Strategy to make retention of packages which works with delegate. In this delegate we can write our own rules
Declaration
public ReclaimerStrategyDelegateProps()
Fields
NodeName
Node key in JSON with value for Name
Declaration
public const string NodeName = "name"
Field Value
Type | Description |
---|---|
string |
NodePackageManager
Node key with value for PackageManagerProps
Declaration
public const string NodePackageManager = "package_manager"
Field Value
Type | Description |
---|---|
string |
Properties
CalcDeletingPackages
Method to calc deleting packages
Declaration
public CalcDeletingPackages? CalcDeletingPackages { get; set; }
Property Value
Type | Description |
---|---|
CalcDeletingPackages |
Name
Unique identifier for strategy
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
PackageManagerProps
Properties for contacting with package storage
Declaration
public IPackageManagerProps? PackageManagerProps { get; set; }
Property Value
Type | Description |
---|---|
IPackageManagerProps |
Methods
ApplyConstants(IDictionaryStringString)
Replace some values in properties with constants
Declaration
public void ApplyConstants(IDictionaryStringString constants)
Parameters
Type | Name | Description |
---|---|---|
IDictionaryStringString | constants |
Clone()
Create new instance as copy of existing
Declaration
public IReclaimerStrategyProps Clone()
Returns
Type | Description |
---|---|
IReclaimerStrategyProps |
Copy(IReclaimerStrategyProps)
Copy all properties from another instance
Declaration
public void Copy(IReclaimerStrategyProps props)
Parameters
Type | Name | Description |
---|---|---|
IReclaimerStrategyProps | props |
EmptyValues()
Set values of private properties to default
Declaration
public void EmptyValues()
Update(JsonNode?, string)
Update self properties from json
Declaration
public void Update(JsonNode? jsonInfo, string relativeDir)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Json.Nodes.JsonNode | jsonInfo | Reading json |
string | relativeDir | Path to be added if value is relative path |