IExtendedInfoStorage

StockSharp.Algo.Storages

Extended info storage.

Properties

Storages
public IEnumerable<IExtendedInfoStorageItem> Storages { get; }
value = iExtendedInfoStorage.Storages

Get all extended storages.

Methods

CreateAsync
public ValueTask<IExtendedInfoStorageItem> CreateAsync(string storageName, IEnumerable<ValueTuple<string, Type>> fields, CancellationToken cancellationToken)
result = iExtendedInfoStorage.CreateAsync(storageName, fields, cancellationToken)

To create storage.

storageName
Storage name.
fields
Extended fields (names and types).
cancellationToken
CancellationToken

Returns: Storage.

DeleteAsync
public ValueTask DeleteAsync(IExtendedInfoStorageItem storage, CancellationToken cancellationToken)
result = iExtendedInfoStorage.DeleteAsync(storage, cancellationToken)

Delete storage.

storage
Storage.
cancellationToken
CancellationToken
GetAsync
public ValueTask<IExtendedInfoStorageItem> GetAsync(string storageName, CancellationToken cancellationToken)
result = iExtendedInfoStorage.GetAsync(storageName, cancellationToken)

To get storage for the specified name.

storageName
Storage name.
cancellationToken
CancellationToken

Returns: Storage.

InitAsync
public ValueTask<Dictionary<IExtendedInfoStorageItem, Exception>> InitAsync(CancellationToken cancellationToken)
result = iExtendedInfoStorage.InitAsync(cancellationToken)

Initialize the storage.

Returns: Possible errors with storage names. Empty dictionary means initialization without any issues.

Events

Created
public event Action<IExtendedInfoStorageItem> Created
iExtendedInfoStorage.Created += handler

The storage was created.

Deleted
public event Action<IExtendedInfoStorageItem> Deleted
iExtendedInfoStorage.Deleted += handler

The storage was deleted.