CsvNativeIdStorageProvider

StockSharp.Algo.Storages

CSV-Anbieter von nativen Finanzinstrumenten

Erbt von: AsyncDisposable

Implementiert: INativeIdStorageProvider, IAsyncDisposable

Konstruktoren

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

Initialisiert eine neue Instanz von CsvNativeIdStorageProvider.

path
Weg zur Lagerung.
executor
Sequential Operation Executor für die Synchronisierung des Plattenzugriffs.
CsvNativeIdStorageProvider
public CsvNativeIdStorageProvider(IFileSystem fileSystem, string path, ChannelExecutor executor)
csvNativeIdStorageProvider = CsvNativeIdStorageProvider(fileSystem, path, executor)

Initialisiert eine neue Instanz von CsvNativeIdStorageProvider.

fileSystem
IFileSystem
path
Weg zur Lagerung.
executor
Sequential Operation Executor für die Synchronisierung des Plattenzugriffs.

Methoden

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

Ressourcen freigeben.

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

Speicher für einen bestimmten Speichernamen abrufen.

storageName
Speichername.

Rückgabe: Speicherinstanz.

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

Initialisieren Sie die Speicherung.

cancellationToken
CancellationToken

Rückgabe: Possible errors with storage names. Empty dictionary means initialization without any issues.