InMemorySecurityMappingStorageProvider
StockSharp.Algo.Storages
In memory security identifier mappings storage provider.
Inherits: Disposable
Implements: ISecurityMappingStorageProvider, IDisposable
Properties
StorageNames
public IEnumerable<string> StorageNames { get; }
value = inMemorySecurityMappingStorageProvider.StorageNames
Get storage names.
Methods
DisposeManaged
protected override void DisposeManaged()
inMemorySecurityMappingStorageProvider.DisposeManaged()
Release resources.
GetStorage
public ISecurityMappingStorage GetStorage(string storageName)
result = inMemorySecurityMappingStorageProvider.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 = inMemorySecurityMappingStorageProvider.InitAsync(cancellationToken)
Initialize the storage provider.
- cancellationToken
- CancellationToken
Returns: Possible errors with storage names. Empty dictionary means initialization without any issues.