CsvExtendedInfoStorage
StockSharp.Algo.Storages
Расширенное хранилище информации, используются файлы csv.
Реализует: IExtendedInfoStorage
Конструкторы
CsvExtendedInfoStorage
public CsvExtendedInfoStorage(string path, ChannelExecutor executor)
csvExtendedInfoStorage = CsvExtendedInfoStorage(path, executor)
Инициализирует новый экземпляр CsvExtendedInfoStorage.
- path
- Путь к хранилищу.
- executor
- Исполнитель последовательных операций синхронизации доступа к диску.
CsvExtendedInfoStorage
public CsvExtendedInfoStorage(IFileSystem fileSystem, string path, ChannelExecutor executor)
csvExtendedInfoStorage = CsvExtendedInfoStorage(fileSystem, path, executor)
Инициализирует новый экземпляр CsvExtendedInfoStorage.
- fileSystem
- IFileSystem
- path
- Путь к хранилищу.
- executor
- Исполнитель последовательных операций синхронизации доступа к диску.
Методы
InitAsync
public ValueTask<Dictionary<IExtendedInfoStorageItem, Exception>> InitAsync(CancellationToken cancellationToken)
result = csvExtendedInfoStorage.InitAsync(cancellationToken)
Инициализируйте хранилище.
Возвращает: Possible errors with storage names. Empty dictionary means initialization without any issues.