ISessionTransactionIdStorage

StockSharp.Configuration

The interface describing the session based transaction and request identifiers storage.

方法

CreateRequestId() : string

Create request identifier.

返回值: The request identifier.

CreateTransactionId(string) : long

Create association.

requestId
The request identifier.

返回值: Transaction ID.

RemoveRequestId(string) : bool

Delete association.

requestId
The request identifier.

返回值: if association was removed successfully, otherwise, returns .

RemoveTransactionId(long) : bool

Delete association.

transactionId
Transaction ID.

返回值: if association was removed successfully, otherwise, returns .

TryGetRequestId(long, string) : bool

Try find request id by the specified transaction id.

transactionId
Transaction ID.
requestId
The found request identifier when method returns ; otherwise default.

返回值: if request id was found for the specified transaction; otherwise, .

TryGetTransactionId(string, long) : bool

Try find transaction id by the specified request id.

requestId
The request identifier.
transactionId
The found transaction id when method returns ; otherwise default.

返回值: if transaction id was found for the specified request; otherwise, .