ISubscriptionRoutingState

StockSharp.Algo.Basket

State storage for subscription routing in basket adapter.

Methods

AddRequest
public void AddRequest(long transactionId, ISubscriptionMessage message, IMessageAdapter adapter)
iSubscriptionRoutingState.AddRequest(transactionId, message, adapter)

Add request by ID.

AddSubscription
public void AddSubscription(long transactionId, ISubscriptionMessage message, IMessageAdapter[] adapters, DataType dataType)
iSubscriptionRoutingState.AddSubscription(transactionId, message, adapters, dataType)

Add subscription info.

AddUnsubscribe
public void AddUnsubscribe(long transactionId, ISubscriptionMessage message)
iSubscriptionRoutingState.AddUnsubscribe(transactionId, message)

Keep an unsubscribe the basket was given, by the caller's ID, until its children answer.

Clear
public void Clear()
iSubscriptionRoutingState.Clear()

Clear all state.

GetSubscribers
public long[] GetSubscribers(DataType dataType)
result = iSubscriptionRoutingState.GetSubscribers(dataType)

Get subscriber IDs by data type.

RemoveRequest
public bool RemoveRequest(long transactionId)
result = iSubscriptionRoutingState.RemoveRequest(transactionId)

Remove request by ID.

RemoveSubscription
public bool RemoveSubscription(long transactionId)
result = iSubscriptionRoutingState.RemoveSubscription(transactionId)

Remove subscription.

RemoveUnsubscribe
public bool RemoveUnsubscribe(long transactionId)
result = iSubscriptionRoutingState.RemoveUnsubscribe(transactionId)

Remove an unsubscribe the basket was given, by the caller's ID.

TryGetRequest
public bool TryGetRequest(long transactionId, ISubscriptionMessage message, IMessageAdapter adapter)
result = iSubscriptionRoutingState.TryGetRequest(transactionId, message, adapter)

Try get request by ID.

TryGetSubscription
public bool TryGetSubscription(long transactionId, ISubscriptionMessage message, IMessageAdapter[] adapters, DataType dataType)
result = iSubscriptionRoutingState.TryGetSubscription(transactionId, message, adapters, dataType)

Try get subscription info.

TryGetUnsubscribe
public bool TryGetUnsubscribe(long transactionId, ISubscriptionMessage message)
result = iSubscriptionRoutingState.TryGetUnsubscribe(transactionId, message)

Try get an unsubscribe the basket was given, by the caller's ID.