Class HashGeneratorCommon
Create hash value using System.Security.Cryptography.HashAlgorithm.ComputeHash(System.Byte[])
Inheritance
object
HashGeneratorCommon
Namespace: BuildSystem.HashGenerator.Common
Assembly: BuildSystem.Core.dll
Syntax
public class HashGeneratorCommon : Object, IHashGenerator, IManager
Constructors
HashGeneratorCommon(ILogger?, HashGeneratorCommonProps, string)
Create hash value using System.Security.Cryptography.HashAlgorithm.ComputeHash(System.Byte[])
Declaration
public HashGeneratorCommon(ILogger? logger, HashGeneratorCommonProps props, string tempDir)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | Logging object |
HashGeneratorCommonProps | props | Properties of hash generator |
string | tempDir | Parent folder for temporary operations |
Fields
ClassIdent
Unique ident of class
Declaration
public const string ClassIdent = "HashGenerator.Common"
Field Value
Type | Description |
---|---|
string |
Properties
HashAlgorithmType
Type of calculating hash value
Declaration
public HashAlgorithmType HashAlgorithmType { get; }
Property Value
Type | Description |
---|---|
HashAlgorithmType |
Logger
Declaration
public ILogger? Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Props
Declaration
public IManagerProp Props { get; }
Property Value
Type | Description |
---|---|
IManagerProp |
Methods
GenerateHash(List<string>)
Generate hash value
Declaration
public string GenerateHash(List<string> masks)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<><string> | masks |
Returns
Type | Description |
---|---|
string | Result of hash value for the list |
GenerateHash(string)
Generate hash value
Declaration
public string GenerateHash(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | Path to file |
Returns
Type | Description |
---|---|
string | Result of hash value for the file |