IPendingMessageState
StockSharp.Algo.Basket
Interface for pending messages storage.
Properties
Count
public int Count { get; }
value = iPendingMessageState.Count
Gets the count of pending messages.
Methods
Add
public void Add(Message message)
iPendingMessageState.Add(message)
Adds a message to pending queue.
GetAndClear
public Message[] GetAndClear()
result = iPendingMessageState.GetAndClear()
Gets all pending messages and clears the queue.
TryRemoveMarketData
public MarketDataMessage TryRemoveMarketData(long transactionId)
result = iPendingMessageState.TryRemoveMarketData(transactionId)
Tries to find and remove a pending MarketDataMessage by its transaction ID.
- transactionId
- Transaction ID to find.
Returns: The removed message, or null if not found.