IAdapterConnectionManager
StockSharp.Algo.Basket
Interface for managing adapter connections in basket adapter.
Eigenschaften
ConnectDisconnectEventOnFirstAdapter : bool
To call the ConnectMessage event when the first adapter connects. If , waits for all adapters to connect.
CurrentState : ConnectionStates
Gets the current aggregated connection state.
HasPendingAdapters : bool
Whether any adapter is still connecting.
State : IAdapterConnectionState
Gets the underlying state storage.
Methoden
BeginConnect()
Sets basket state to connecting.
BeginDisconnect()
Sets basket state to disconnecting.
InitializeAdapter(IMessageAdapter)
Initializes adapter state before connecting.
ProcessConnect(IMessageAdapter, Exception) : Message[]
Processes adapter connect response.
- adapter
- The adapter that connected.
- error
- Optional connection error.
Rückgabe: Messages to send to outer handler (Connect/Disconnect if basket state changed).
ProcessDisconnect(IMessageAdapter, Exception) : Message[]
Processes adapter disconnect response.
- adapter
- The adapter that disconnected.
- error
- Optional disconnection error.
Rückgabe: Messages to send to outer handler.
Reset()
Resets all adapter states.