SubscriptionRoutingState
StockSharp.Algo.Basket
ISubscriptionRoutingState的默认执行.
方法
AddRequest
public void AddRequest(long transactionId, ISubscriptionMessage message, IMessageAdapter adapter)
subscriptionRoutingState.AddRequest(transactionId, message, adapter)
以ID添加请求 。
AddSubscription
public void AddSubscription(long transactionId, ISubscriptionMessage message, IMessageAdapter[] adapters, DataType dataType)
subscriptionRoutingState.AddSubscription(transactionId, message, adapters, dataType)
添加订阅信息 。
AddUnsubscribe
public void AddUnsubscribe(long transactionId, ISubscriptionMessage message)
subscriptionRoutingState.AddUnsubscribe(transactionId, message)
Keep an unsubscribe the basket was given, by the caller's ID, until its children answer.
GetSubscribers
public long[] GetSubscribers(DataType dataType)
result = subscriptionRoutingState.GetSubscribers(dataType)
获取数据类型的用户ID。
RemoveRequest
public bool RemoveRequest(long transactionId)
result = subscriptionRoutingState.RemoveRequest(transactionId)
以ID删除请求 。
RemoveSubscription
public bool RemoveSubscription(long transactionId)
result = subscriptionRoutingState.RemoveSubscription(transactionId)
删除订阅 。
RemoveUnsubscribe
public bool RemoveUnsubscribe(long transactionId)
result = subscriptionRoutingState.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 = subscriptionRoutingState.TryGetRequest(transactionId, message, adapter)
尝试通过身份请求。
TryGetSubscription
public bool TryGetSubscription(long transactionId, ISubscriptionMessage message, IMessageAdapter[] adapters, DataType dataType)
result = subscriptionRoutingState.TryGetSubscription(transactionId, message, adapters, dataType)
试着获取订阅信息。
TryGetUnsubscribe
public bool TryGetUnsubscribe(long transactionId, ISubscriptionMessage message)
result = subscriptionRoutingState.TryGetUnsubscribe(transactionId, message)
Try get an unsubscribe the basket was given, by the caller's ID.