Table of Contents

Interface ISessionTransactionIdStorage

Namespace
StockSharp.Configuration
Assembly
StockSharp.Configuration.dll

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

public interface ISessionTransactionIdStorage
Extension Methods

Methods

CreateRequestId()

Create request identifier.

string CreateRequestId()

Returns

string

The request identifier.

CreateTransactionId(string)

Create association.

long CreateTransactionId(string requestId)

Parameters

requestId string

The request identifier.

Returns

long

Transaction ID.

RemoveRequestId(string)

Delete association.

bool RemoveRequestId(string requestId)

Parameters

requestId string

The request identifier.

Returns

bool

true if association was removed successfully, otherwise, returns false.

RemoveTransactionId(long)

Delete association.

bool RemoveTransactionId(long transactionId)

Parameters

transactionId long

Transaction ID.

Returns

bool

true if association was removed successfully, otherwise, returns false.

TryGetRequestId(long, out string)

Try find request id by the specified transaction id.

bool TryGetRequestId(long transactionId, out string requestId)

Parameters

transactionId long

Transaction ID.

requestId string

The found request identifier when method returns true; otherwise default.

Returns

bool

true if request id was found for the specified transaction; otherwise, false.

TryGetTransactionId(string, out long)

Try find transaction id by the specified request id.

bool TryGetTransactionId(string requestId, out long transactionId)

Parameters

requestId string

The request identifier.

transactionId long

The found transaction id when method returns true; otherwise default.

Returns

bool

true if transaction id was found for the specified request; otherwise, false.