IMappingMessageAdapterProvider

StockSharp.Algo.Storages

The mapping message adapter's provider interface.

Properties

Adapters
public IEnumerable<KeyValuePair<TKey, Guid>> Adapters { get; }
value = iMappingMessageAdapterProvider.Adapters

All available adapters.

Methods

InitAsync
public ValueTask InitAsync(CancellationToken cancellationToken)
result = iMappingMessageAdapterProvider.InitAsync(cancellationToken)

Initialize the storage.

cancellationToken
CancellationToken
RemoveAssociation
public bool RemoveAssociation(TKey key)
result = iMappingMessageAdapterProvider.RemoveAssociation(key)

Remove association with adapter.

key
Key.

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

SetAdapter
public bool SetAdapter(TKey key, Guid adapterId)
result = iMappingMessageAdapterProvider.SetAdapter(key, adapterId)

Make association with adapter.

key
Key.
adapterId
Adapter identifier.

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

TryGetAdapter
public Guid? TryGetAdapter(TKey key)
result = iMappingMessageAdapterProvider.TryGetAdapter(key)

Get adapter by the specified key.

key
Key.

Returns: Found adapter identifier or .

Events

Changed
public event Action<TKey, Guid, bool> Changed
iMappingMessageAdapterProvider.Changed += handler

Association changed.