Class InMemoryPortfolioMessageAdapterProvider
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
In memory implementation of IPortfolioMessageAdapterProvider.
public class InMemoryPortfolioMessageAdapterProvider : IPortfolioMessageAdapterProvider, IMappingMessageAdapterProvider<string>
- Inheritance
-
InMemoryPortfolioMessageAdapterProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
InMemoryPortfolioMessageAdapterProvider()
Initializes a new instance of the InMemoryPortfolioMessageAdapterProvider.
public InMemoryPortfolioMessageAdapterProvider()
Properties
Adapters
All available adapters.
public IEnumerable<KeyValuePair<string, Guid>> Adapters { get; }
Property Value
Methods
Init()
Initialize the storage.
public void Init()
RemoveAssociation(string)
Remove association with adapter.
public bool RemoveAssociation(string key)
Parameters
key
stringKey.
Returns
SetAdapter(string, Guid)
Make association with adapter.
public bool SetAdapter(string key, Guid adapterId)
Parameters
Returns
TryGetAdapter(string)
Get adapter by the specified key.
public Guid? TryGetAdapter(string key)
Parameters
key
stringKey.
Returns
Events
Changed
Association changed.
public event Action<string, Guid, bool> Changed