AdapterConnectionState

StockSharp.Algo.Basket

Default implementation of IAdapterConnectionState.

Реализует: IAdapterConnectionState

Свойства

AllDisconnectedOrFailed : bool

Whether all adapters are Disconnected or Failed.

AllFailed : bool

Whether all adapters are in Failed state.

ConnectedCount : int

Gets the count of connected adapters.

CurrentState : ConnectionStates

Gets the current aggregated connection state.

HasPendingAdapters : bool

Whether any adapter is still connecting.

TotalCount : int

Gets the total count of adapters.

Методы

Clear()

Clears all adapter states and resets current state to Disconnected.

GetAllStates() : IEnumerable<ValueTuple<IMessageAdapter, ConnectionStates, Exception>>

Gets all adapter states.

GetErrors() : Exception[]

Get all non-null errors from adapter states.

RemoveAdapter(IMessageAdapter) : bool

Removes the state for the specified adapter.

SetAdapterState(IMessageAdapter, ConnectionStates, Exception)

Sets the state for the specified adapter.

TryGetAdapterState(IMessageAdapter, ConnectionStates, Exception) : bool

Tries to get the state for the specified adapter.