Class CsvPortfolioMessageAdapterProvider
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
CSV implementation of IPortfolioMessageAdapterProvider.
public class CsvPortfolioMessageAdapterProvider : IPortfolioMessageAdapterProvider, IMappingMessageAdapterProvider<string>
- Inheritance
-
CsvPortfolioMessageAdapterProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
CsvPortfolioMessageAdapterProvider(string)
Initializes a new instance of the CsvPortfolioMessageAdapterProvider.
public CsvPortfolioMessageAdapterProvider(string fileName)
Parameters
fileNamestringFile name.
Properties
Adapters
All available adapters.
public IEnumerable<KeyValuePair<string, Guid>> Adapters { get; }
Property Value
DelayAction
The time delayed action.
public DelayAction DelayAction { get; set; }
Property Value
Methods
Init()
Initialize the storage.
public void Init()
RemoveAssociation(string)
Remove association with adapter.
public bool RemoveAssociation(string key)
Parameters
keystringKey.
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
keystringKey.
Returns
Events
Changed
Association changed.
public event Action<string, Guid, bool> Changed