Interface ICycleEventsProvider
Use this service to get notification about the different events happening during the delta production cycles.
Namespace: Catalyst.Abstractions.Consensus.Cycle
Assembly: Catalyst.Abstractions.dll
Syntax
public interface ICycleEventsProvider
Properties
| Improve this Doc View SourceConfiguration
Configuration object holding the duration of the different phases in the cycle.
Declaration
ICycleConfiguration Configuration { get; }
Property Value
Type | Description |
---|---|
ICycleConfiguration |
PhaseChanges
Subscribe to this stream to get notified about cycle and phaseDetails changes
Declaration
IObservable<IPhase> PhaseChanges { get; }
Property Value
Type | Description |
---|---|
System.IObservable<IPhase> |
Methods
| Improve this Doc View SourceClose()
Terminate the emission of state changes events on the PhaseChanges stream
Declaration
void Close()
GetTimeSpanUntilNextCycleStart()
Use this method to find out in how much time the next production cycle will start.
Declaration
TimeSpan GetTimeSpanUntilNextCycleStart()
Returns
Type | Description |
---|---|
System.TimeSpan | A TimeSpan representing the time to wait until next delta production cycle starts. |