CsvExtendedInfoStorage
StockSharp.Algo.Storages
扩展信息存储, 使用 Csv 文件 。
构造函数
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.