Table of Contents

Interface IMappingMessageAdapterProvider<TKey>

Namespace
StockSharp.Algo.Storages
Assembly
StockSharp.Algo.dll

The mapping message adapter's provider interface.

public interface IMappingMessageAdapterProvider<TKey>

Type Parameters

TKey

Type of key.

Extension Methods

Properties

Adapters

All available adapters.

IEnumerable<KeyValuePair<TKey, Guid>> Adapters { get; }

Property Value

IEnumerable<KeyValuePair<TKey, Guid>>

Methods

Init()

Initialize the storage.

void Init()

RemoveAssociation(TKey)

Remove association with adapter.

bool RemoveAssociation(TKey key)

Parameters

key TKey

Key.

Returns

bool

true if the association is successfully removed, otherwise, false.

SetAdapter(TKey, Guid)

Make association with adapter.

bool SetAdapter(TKey key, Guid adapterId)

Parameters

key TKey

Key.

adapterId Guid

Adapter identifier.

Returns

bool

true if the association is successfully changed, otherwise, false.

TryGetAdapter(TKey)

Get adapter by the specified key.

Guid? TryGetAdapter(TKey key)

Parameters

key TKey

Key.

Returns

Guid?

Found adapter identifier or null.

Events

Changed

Association changed.

event Action<TKey, Guid, bool> Changed

Event Type

Action<TKey, Guid, bool>