Show / Hide Table of Contents

    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 Source

    Configuration

    Configuration object holding the duration of the different phases in the cycle.

    Declaration
    ICycleConfiguration Configuration { get; }
    Property Value
    Type Description
    ICycleConfiguration
    | Improve this Doc View Source

    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 Source

    Close()

    Terminate the emission of state changes events on the PhaseChanges stream

    Declaration
    void Close()
    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network