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
fileName
stringFile 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
- DelayAction
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