IParentChildMap

StockSharp.Algo.Basket

Maps parent subscription IDs to child subscription IDs (for multi-adapter routing).

Métodos

AddMapping(long, ISubscriptionMessage, IMessageAdapter)

Add parent-child mapping.

childId
Child subscription ID.
parentMsg
Parent subscription message.
adapter
The adapter assigned to this child.
Clear()

Clear all mappings.

GetChild(long) : IDictionary<long, IMessageAdapter>

Get all active child subscriptions for a parent.

parentId
Parent subscription ID.

Devuelve: Dictionary of childId → adapter.

ProcessChildFinish(long, bool) : long?

Process a child subscription finish.

childId
Child subscription ID.
needParentResponse
Whether a response should be sent for the parent.

Devuelve: Parent subscription ID, or null if not found.

ProcessChildOnline(long, bool) : long?

Process a child subscription online notification.

childId
Child subscription ID.
needParentResponse
Whether a response should be sent for the parent.

Devuelve: Parent subscription ID, or null if not found.

ProcessChildResponse(long, Exception, bool, bool, IEnumerable<Exception>) : long?

Process a child subscription response.

childId
Child subscription ID.
error
Error if any.
needParentResponse
Whether a response should be sent for the parent.
allError
Whether all children have errors.
innerErrors
All collected errors.

Devuelve: Parent subscription ID, or null if not found.

RemoveMapping(long) : bool

Remove a child mapping.

childId
Child subscription ID to remove.

Devuelve: if removed.

RemoveMappings(long) : int

Remove all child mappings for the specified parent.

parentId
Parent subscription ID.

Devuelve: Number of removed mappings.

TryGetParent(long, long) : bool

Try get parent ID for a child subscription.

childId
Child subscription ID.
parentId
Parent subscription ID if found.

Devuelve: if found.