IHeartbeatManagerState

StockSharp.Algo

State storage for HeartbeatMessageAdapter reconnection logic.

属性

CanSendTime : bool

Whether the adapter can send time messages.

ConnectingAttemptCount : int

Number of remaining reconnection attempts.

ConnectionTimeOut : TimeSpan

Current connection timeout remaining.

CurrentState : ConnectionStates

Current connection state.

IsFirstTimeConnect : bool

Whether this is the first time connecting.

PreviousState : ConnectionStates

Previous connection state.

SuppressDisconnectError : bool

Whether to suppress disconnect error messages.

方法

Reset()

Reset all state to initial values.