CsvNativeIdStorageProvider
StockSharp.Algo.Storages
CSV security native identifier storage provider.
Inherits: AsyncDisposable
Implements: INativeIdStorageProvider, IAsyncDisposable
Constructors
CsvNativeIdStorageProvider
public CsvNativeIdStorageProvider(string path, ChannelExecutor executor)
csvNativeIdStorageProvider = CsvNativeIdStorageProvider(path, executor)
Initializes a new instance of the CsvNativeIdStorageProvider.
- path
- Path to storage.
- executor
- Sequential operation executor for disk access synchronization.
CsvNativeIdStorageProvider
public CsvNativeIdStorageProvider(IFileSystem fileSystem, string path, ChannelExecutor executor)
csvNativeIdStorageProvider = CsvNativeIdStorageProvider(fileSystem, path, executor)
Initializes a new instance of the CsvNativeIdStorageProvider.
- fileSystem
- IFileSystem
- path
- Path to storage.
- executor
- Sequential operation executor for disk access synchronization.
Methods
DisposeManaged
protected override ValueTask DisposeManaged()
result = csvNativeIdStorageProvider.DisposeManaged()
Release resources.
GetStorage
public INativeIdStorage GetStorage(string storageName)
result = csvNativeIdStorageProvider.GetStorage(storageName)
Get storage for a specific storage name.
- storageName
- Storage name.
Returns: Storage instance.
InitAsync
public ValueTask<Dictionary<string, Exception>> InitAsync(CancellationToken cancellationToken)
result = csvNativeIdStorageProvider.InitAsync(cancellationToken)
Initialize the storage provider.
- cancellationToken
- CancellationToken
Returns: Possible errors with storage names. Empty dictionary means initialization without any issues.