Class ConnectionStateMachine
A state machine for connection states.
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: 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)