Interface IStableHash
- Namespace
- XENBIT.ResQueServe.Abstractions.Interfaces
- Assembly
- RQS.Abstractions.dll
Defines a contract for generating a stable, cross-platform hash based on specified properties of an object.
[TypeScriptUnavailable]
public interface IStableHash
- Extension Methods
Properties
HashProperties
Specifies the names of the properties that should be used in the stable hash calculation.
IEnumerable<string> HashProperties { get; }
Property Value
- IEnumerable<string>
A list of property names to be included in the hash.
Methods
GetStableHash()
Generates a stable, cross-platform hash for the object. The hash is based on the properties specified in GetHashProperties.
string GetStableHash()
Returns
- string
A SHA256 hash string representing the selected properties of the object.
Exceptions
- ArgumentException
Thrown if a specified property does not exist on the object type.