CsvNativeIdStorageProvider

StockSharp.Algo.Storages

CSV金融工具本土标识存储提供商.

继承自: AsyncDisposable

实现: INativeIdStorageProvider, IAsyncDisposable

构造函数

CsvNativeIdStorageProvider
public CsvNativeIdStorageProvider(string path, ChannelExecutor executor)
csvNativeIdStorageProvider = CsvNativeIdStorageProvider(path, executor)

初始化了 & ##CsvNativeIdStorageProvider+#的新实例.

path
存储路径 。
executor
磁盘访问同步的序列操作执行器 。
CsvNativeIdStorageProvider
public CsvNativeIdStorageProvider(IFileSystem fileSystem, string path, ChannelExecutor executor)
csvNativeIdStorageProvider = CsvNativeIdStorageProvider(fileSystem, path, executor)

初始化了 & ##CsvNativeIdStorageProvider+#的新实例.

fileSystem
IFileSystem
path
存储路径 。
executor
磁盘访问同步的序列操作执行器 。

方法

DisposeManaged
protected override ValueTask DisposeManaged()
result = csvNativeIdStorageProvider.DisposeManaged()

释放资源。

GetStorage
public INativeIdStorage GetStorage(string storageName)
result = csvNativeIdStorageProvider.GetStorage(storageName)

获取存储到特定存储名 。

storageName
储取名.

返回值: 存储实例。

InitAsync
public ValueTask<Dictionary<string, Exception>> InitAsync(CancellationToken cancellationToken)
result = csvNativeIdStorageProvider.InitAsync(cancellationToken)

初始化存储 。

cancellationToken
CancellationToken

返回值: Possible errors with storage names. Empty dictionary means initialization without any issues.