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
TKeyKey.
Returns
SetAdapter(TKey, Guid)
Make association with adapter.
bool SetAdapter(TKey key, Guid adapterId)
Parameters
key
TKeyKey.
adapterId
GuidAdapter identifier.
Returns
TryGetAdapter(TKey)
Get adapter by the specified key.
Guid? TryGetAdapter(TKey key)
Parameters
key
TKeyKey.
Returns
Events
Changed
Association changed.
event Action<TKey, Guid, bool> Changed