Table of Contents

Interface ISessionTransactionIdStorage

Namespace
StockSharp.Server.Core
Assembly
StockSharp.Server.Core.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)

Find request id by the specified transaction id.

string TryGetRequestId(long transactionId)

Parameters

transactionId long

Transaction ID.

Returns

string

The request identifier. null if the specified id doesn't exist.

TryGetTransactionId(string)

Find transaction id by the specified request id.

long? TryGetTransactionId(string requestId)

Parameters

requestId string

The request identifier.

Returns

long?

Transaction ID. null if the specified request doesn't exist.