IParentChildMap

StockSharp.Algo.Basket

親サブスクリプションIDを子サブスクリプションIDにマップします(マルチアダプタールーティング用)。

メソッド

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

親子マッピングを追加。

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

すべてのマッピングをクリアします。

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

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

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

戻り値: アダプターchildId →

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

戻り値: 削除した場合。

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

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

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

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

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

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

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

戻り値: 見つけたなら。