IMappingMessageAdapterProvider

StockSharp.Algo.Storages

The mapping message adapter's provider interface.

属性

Adapters : IEnumerable<KeyValuePair<T, Guid>>

All available adapters.

方法

InitAsync(CancellationToken) : ValueTask

Initialize the storage.

cancellationToken
CancellationToken
RemoveAssociation(T) : bool

Remove association with adapter.

key
Key.

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

SetAdapter(T, Guid) : bool

Make association with adapter.

key
Key.
adapterId
Adapter identifier.

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

TryGetAdapter(T) : Guid?

Get adapter by the specified key.

key
Key.

返回值: Found adapter identifier or .

事件

Changed : Action<T, Guid, bool>

Association changed.