IAdapterConnectionState
StockSharp.Algo.Basket
アダプター接続状態を管理するためのインターフェイス。
プロパティ
AllDisconnectedOrFailed
public bool AllDisconnectedOrFailed { get; }
value = iAdapterConnectionState.AllDisconnectedOrFailed
アダプターが切断または故障しているかどうか。
AllFailed
public bool AllFailed { get; }
value = iAdapterConnectionState.AllFailed
どのアダプタも故障した状態にあるか。
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
どのアダプタも接続状態にあるか。
TotalCount
public int TotalCount { get; }
value = iAdapterConnectionState.TotalCount
アダプターの総数を取得します。
メソッド
GetAllStates
public IEnumerable<ValueTuple<IMessageAdapter, ConnectionStates, Exception>> GetAllStates()
result = iAdapterConnectionState.GetAllStates()
すべてのアダプターの状態を取得します。
GetErrors
public Exception[] GetErrors()
result = iAdapterConnectionState.GetErrors()
アダプターの状態からすべての非nullエラーを取得します。
RemoveAdapter
public bool RemoveAdapter(IMessageAdapter adapter)
result = iAdapterConnectionState.RemoveAdapter(adapter)
指定されたアダプターの state を削除します。
SetAdapterState
public void SetAdapterState(IMessageAdapter adapter, ConnectionStates state, Exception error)
iAdapterConnectionState.SetAdapterState(adapter, state, error)
指定されたアダプターの state を設定します。
TryGetAdapterState
public bool TryGetAdapterState(IMessageAdapter adapter, ConnectionStates state, Exception error)
result = iAdapterConnectionState.TryGetAdapterState(adapter, state, error)
指定されたアダプターのステートを取得するのはトリスです。