InMemoryNativeIdStorageProvider
StockSharp.Algo.Storages
In memory security native identifier storage provider.
Inherits: AsyncDisposable
Implements: INativeIdStorageProvider, IAsyncDisposable
Methods
DisposeManaged
protected override ValueTask DisposeManaged()
result = inMemoryNativeIdStorageProvider.DisposeManaged()
Release resources.
GetStorage
public INativeIdStorage GetStorage(string storageName)
result = inMemoryNativeIdStorageProvider.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 = inMemoryNativeIdStorageProvider.InitAsync(cancellationToken)
Initialize the storage provider.
- cancellationToken
- CancellationToken
Returns: Possible errors with storage names. Empty dictionary means initialization without any issues.