IAdapterConnectionState
StockSharp.Algo.Basket
用于管理适配器连接状态的接口 。
属性
AllDisconnectedOrFailed
public bool AllDisconnectedOrFailed { get; }
value = iAdapterConnectionState.AllDisconnectedOrFailed
是否所有适配器已断开或失败 。
ConnectedCount
public int ConnectedCount { get; }
value = iAdapterConnectionState.ConnectedCount
获得连接适配器的计数 。
CurrentState
public ConnectionStates CurrentState { get; set; }
value = iAdapterConnectionState.CurrentState
iAdapterConnectionState.CurrentState = value
获取或设置总和篮子连接状态。
HasPendingAdapters
public bool HasPendingAdapters { get; }
value = iAdapterConnectionState.HasPendingAdapters
是否有适配器处于连接状态 。
方法
GetAllStates
public IEnumerable<ValueTuple<IMessageAdapter, ConnectionStates, Exception>> GetAllStates()
result = iAdapterConnectionState.GetAllStates()
获得所有适配状态.
GetErrors
public Exception[] GetErrors()
result = iAdapterConnectionState.GetErrors()
获取适配状态的所有非无效错误 。
RemoveAdapter
public bool RemoveAdapter(IMessageAdapter adapter)
result = iAdapterConnectionState.RemoveAdapter(adapter)
删除指定的适配器的状态。
SetAdapterState
public void SetAdapterState(IMessageAdapter adapter, ConnectionStates state, Exception error)
iAdapterConnectionState.SetAdapterState(adapter, state, error)
设置指定的适配器状态。
TryGetAdapterState
public bool TryGetAdapterState(IMessageAdapter adapter, ConnectionStates state, Exception error)
result = iAdapterConnectionState.TryGetAdapterState(adapter, state, error)
尝试为指定的适配器获取状态 。