InMemoryNativeIdStorageProvider
StockSharp.Algo.Storages
在记忆中,金融工具本土标识存储提供者.
继承自: AsyncDisposable
实现: INativeIdStorageProvider, IAsyncDisposable
方法
DisposeManaged
protected override ValueTask DisposeManaged()
result = inMemoryNativeIdStorageProvider.DisposeManaged()
释放资源。
GetStorage
public INativeIdStorage GetStorage(string storageName)
result = inMemoryNativeIdStorageProvider.GetStorage(storageName)
获取存储到特定存储名 。
- storageName
- 储取名.
返回值: 存储实例。
InitAsync
public ValueTask<Dictionary<string, Exception>> InitAsync(CancellationToken cancellationToken)
result = inMemoryNativeIdStorageProvider.InitAsync(cancellationToken)
初始化存储 。
- cancellationToken
- CancellationToken
返回值: Possible errors with storage names. Empty dictionary means initialization without any issues.