InMemorySecurityMessageAdapterProvider

StockSharp.Algo.Storages

In memory implementation of ISecurityMessageAdapterProvider.

实现: ISecurityMessageAdapterProvider, IMappingMessageAdapterProvider<ValueTuple<SecurityId, DataType>>

构造函数

InMemorySecurityMessageAdapterProvider()

Initializes a new instance of the InMemorySecurityMessageAdapterProvider.

属性

方法

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.

返回值: if the association is successfully changed, otherwise, .

TryGetAdapter(SecurityId, DataType) : Guid?

Get adapter by the specified security id.

securityId
Security ID.
dataType
Data type.

返回值: Found adapter identifier or .

事件

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

Association changed.