InMemorySecurityMessageAdapterProvider

StockSharp.Algo.Storages

In memory implementation of ISecurityMessageAdapterProvider.

Implements: ISecurityMessageAdapterProvider, IMappingMessageAdapterProvider<ValueTuple<SecurityId, DataType>>

Constructors

InMemorySecurityMessageAdapterProvider()

Initializes a new instance of the InMemorySecurityMessageAdapterProvider.

Properties

Methods

InitAsync(CancellationToken) : ValueTask

Initialize the storage.

cancellationToken
CancellationToken
SetAdapter(SecurityId, DataType, Guid) : bool

Make association with adapter.

securityId
Security ID.
dataType
Data type.
adapterId
Adapter identifier.

Returns: if the association is successfully changed, otherwise, .

TryGetAdapter(SecurityId, DataType) : Guid?

Get adapter by the specified security id.

securityId
Security ID.
dataType
Data type.

Returns: Found adapter identifier or .

Events

Changed : Action<ValueTuple<SecurityId, DataType>, Guid, bool>

Association changed.