Search Results for

    Show / Hide Table of Contents

    Class ConnectionStateMachine

    A state machine for connection states.

    Inheritance
    System.Object
    StateMachine<ConnectionState>
    ConnectionStateMachine
    Inherited Members
    StateMachine<ConnectionState>.State
    StateMachine<ConnectionState>.StateValue
    StateMachine<ConnectionState>.SystemTimestamp
    StateMachine<ConnectionState>.LastStateTicks
    StateMachine<ConnectionState>.LastStateMillis
    StateMachine<ConnectionState>.AddTransition(ConnectionState, ConnectionState)
    StateMachine<ConnectionState>.CanTransition(ConnectionState)
    StateMachine<ConnectionState>.IsReachable(ConnectionState)
    StateMachine<ConnectionState>.Transition(ConnectionState)
    StateMachine<ConnectionState>.GetPromise<R>(ConnectionState, R)
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class ConnectionStateMachine : StateMachine<ConnectionState>

    Constructors

    ConnectionStateMachine()

    Initializes a new instance of the ConnectionStateMachine class.

    Declaration
    public ConnectionStateMachine()

    Methods

    StateToValue(ConnectionState)

    Converts a state to an integer value.

    Declaration
    protected override int StateToValue(ConnectionState state)
    Parameters
    Type Name Description
    ConnectionState state

    The state.

    Returns
    Type Description
    System.Int32
    Overrides
    FM.LiveSwitch.StateMachine<FM.LiveSwitch.ConnectionState>.StateToValue(FM.LiveSwitch.ConnectionState)

    ValueToState(Int32)

    Converts an integer value to a state.

    Declaration
    protected override ConnectionState ValueToState(int value)
    Parameters
    Type Name Description
    System.Int32 value

    The integer value.

    Returns
    Type Description
    ConnectionState
    Overrides
    FM.LiveSwitch.StateMachine<FM.LiveSwitch.ConnectionState>.ValueToState(System.Int32)
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0