Class RestorerDepProp
Restoring dependency
Inheritance
object
RestorerDepProp
Namespace: BuildSystem.ManagerObject.Interfaces
Assembly: BuildSystem.ManagerObject.Interfaces.dll
Syntax
public class RestorerDepProp : Object
Constructors
RestorerDepProp()
Restoring dependency
Declaration
public RestorerDepProp()
Fields
KeyCondition
Key in JSON for value of condition text
Declaration
public const string KeyCondition = "condition"
Field Value
Type | Description |
---|---|
string |
KeyOutDir
Key in JSON for value of full path for restoring package
Declaration
public const string KeyOutDir = "out_dir"
Field Value
Type | Description |
---|---|
string |
KeyPackageId
Key in JSON for value of package id
Declaration
public const string KeyPackageId = "package_id"
Field Value
Type | Description |
---|---|
string |
KeyVersion
Key in JSON for value of package version
Declaration
public const string KeyVersion = "version"
Field Value
Type | Description |
---|---|
string |
Properties
Condition
Condition text to resolve - restore or not
Declaration
public string Condition { get; set; }
Property Value
Type | Description |
---|---|
string |
OutDir
Directory where package should be restored
Declaration
public string? OutDir { get; set; }
Property Value
Type | Description |
---|---|
string |
PackageId
Unique package id
Declaration
public string? PackageId { get; set; }
Property Value
Type | Description |
---|---|
string |
Version
Version of package
Declaration
public string? Version { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
ApplyConstants(Dictionary<string, string?>)
Reread self properties replacing formulas by rules (constants)
Declaration
public virtual void ApplyConstants(Dictionary<string, string?> constants)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<,><string, string> | constants | Rules of replacing |
EmptyValues()
Set all properties to default values
Declaration
public virtual void EmptyValues()
Update(JsonNode?, string)
Read properties from JsonObject
Declaration
public void Update(JsonNode? jsonNode, string relativeDir)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Json.Nodes.JsonNode | jsonNode | JsonObject with parameters of restoring package |
string | relativeDir | Adding path if the props contain relative path |