ParentChildMap

StockSharp.Algo.Basket

IParentChildMap. デフォルト実装。 親サブスクリプションIDを子サブスクリプションIDにマップします。

実装: IParentChildMap

メソッド

AddMapping
public void AddMapping(long childId, ISubscriptionMessage parentMsg, IMessageAdapter adapter)
parentChildMap.AddMapping(childId, parentMsg, adapter)

親子マッピングを追加。

childId
お子様のサブスクリプションID。
parentMsg
親サブスクリプションメッセージ。
adapter
アダプターは、この子に割り当てられます。
Clear
public void Clear()
parentChildMap.Clear()

すべてのアダプターの状態をクリアし、接続解除に現在の状態をリセットします。

GetChild
public IDictionary<long, IMessageAdapter> GetChild(long parentId)
result = parentChildMap.GetChild(parentId)

親のアクティブなお子様のサブスクリプションをすべて取得します。

parentId
親サブスクリプションID。

戻り値: アダプターchildId →

ProcessChildFinish
public long? ProcessChildFinish(long childId, bool needParentResponse)
result = parentChildMap.ProcessChildFinish(childId, needParentResponse)

お子様のサブスクリプション完了を処理します。

childId
お子様のサブスクリプションID。
needParentResponse
親に対して応答が送信されるかどうか。

戻り値: 親サブスクリプションID、または見つからない場合はnull。

ProcessChildOnline
public long? ProcessChildOnline(long childId, bool needParentResponse)
result = parentChildMap.ProcessChildOnline(childId, needParentResponse)

オンラインでの購読を処理する。

childId
お子様のサブスクリプションID。
needParentResponse
親に対して応答が送信されるかどうか。

戻り値: 親サブスクリプションID、または見つからない場合はnull。

ProcessChildResponse
public long? ProcessChildResponse(long childId, Exception error, bool needParentResponse, bool allError, IEnumerable<Exception> innerErrors)
result = parentChildMap.ProcessChildResponse(childId, error, needParentResponse, allError, innerErrors)

お子様のサブスクリプションの応答を処理する。

childId
お子様のサブスクリプションID。
error
どんな場合もエラー。
needParentResponse
親に対して応答が送信されるかどうか。
allError
お子様がエラーを抱えているか、
innerErrors
収集したエラーはすべて。

戻り値: 親サブスクリプションID、または見つからない場合はnull。

RemoveMapping
public bool RemoveMapping(long childId)
result = parentChildMap.RemoveMapping(childId)

子マッピングを削除します。

childId
お子様のサブスクリプションIDを削除

戻り値: 削除した場合。

RemoveMappings
public int RemoveMappings(long parentId)
result = parentChildMap.RemoveMappings(parentId)

指定した親の子マッピングをすべて削除します。

parentId
親サブスクリプションID。

戻り値: 削除されたマッピングの数。

TryGetParent
public bool TryGetParent(long childId, long parentId)
result = parentChildMap.TryGetParent(childId, parentId)

お子様のサブスクリプションに親 ID を取得してください。

childId
お子様のサブスクリプションID。
parentId
見つかった場合、親サブスクリプションID。

戻り値: 見つけたなら。