CsvSecurityMappingStorageProvider

StockSharp.Algo.Storages

Поставщик хранилища сопоставлений идентификаторов финансовых инструментов CSV.

Наследует: Disposable

Реализует: ISecurityMappingStorageProvider, IDisposable

Конструкторы

CsvSecurityMappingStorageProvider
public CsvSecurityMappingStorageProvider(string path, ChannelExecutor executor)
csvSecurityMappingStorageProvider = CsvSecurityMappingStorageProvider(path, executor)

Инициализирует новый экземпляр CsvSecurityMappingStorageProvider.

path
Путь к хранилищу.
executor
Исполнитель последовательных операций синхронизации доступа к диску.
CsvSecurityMappingStorageProvider
public CsvSecurityMappingStorageProvider(IFileSystem fileSystem, string path, ChannelExecutor executor)
csvSecurityMappingStorageProvider = CsvSecurityMappingStorageProvider(fileSystem, path, executor)

Инициализирует новый экземпляр CsvSecurityMappingStorageProvider.

fileSystem
IFileSystem
path
Путь к хранилищу.
executor
Исполнитель последовательных операций синхронизации доступа к диску.

Свойства

StorageNames
public IEnumerable<string> StorageNames { get; }
value = csvSecurityMappingStorageProvider.StorageNames

Назовите имена складов.

Методы

DisposeManaged
protected override void DisposeManaged()
csvSecurityMappingStorageProvider.DisposeManaged()

Освободите ресурсы.

GetStorage
public ISecurityMappingStorage GetStorage(string storageName)
result = csvSecurityMappingStorageProvider.GetStorage(storageName)

Получите хранилище для определенного имени хранилища.

storageName
Имя хранилища.

Возвращает: Экземпляр хранилища.

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

Инициализируйте хранилище.

cancellationToken
CancellationToken

Возвращает: Possible errors with storage names. Empty dictionary means initialization without any issues.