Class DeltaHashProvider
Inheritance
System.Object
DeltaHashProvider
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Catalyst.Core.Modules.Consensus.Deltas
Assembly: Catalyst.Core.Modules.Consensus.dll
Syntax
public class DeltaHashProvider : IDeltaHashProvider
Constructors
| Improve this Doc View SourceDeltaHashProvider(IDeltaCache, ILogger, Int32)
Declaration
public DeltaHashProvider(IDeltaCache deltaCache, ILogger logger, int capacity = 10000)
Parameters
Type | Name | Description |
---|---|---|
IDeltaCache | deltaCache | |
ILogger | logger | |
System.Int32 | capacity |
Properties
| Improve this Doc View SourceDeltaHashUpdates
Declaration
public IObservable<MultiHash> DeltaHashUpdates { get; }
Property Value
Type | Description |
---|---|
System.IObservable<MultiHash> |
Methods
| Improve this Doc View SourceGetLatestDeltaHash(Nullable<DateTime>)
Declaration
public MultiHash GetLatestDeltaHash(DateTime? asOf = default(DateTime? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | asOf |
Returns
Type | Description |
---|---|
MultiHash |
TryUpdateLatestHash(MultiHash, MultiHash)
Declaration
public bool TryUpdateLatestHash(MultiHash previousHash, MultiHash newHash)
Parameters
Type | Name | Description |
---|---|---|
MultiHash | previousHash | |
MultiHash | newHash |
Returns
Type | Description |
---|---|
System.Boolean |