INativeIdStorage

StockSharp.Algo.Storages

Single storage for security native identifiers.

Методы

ClearAsync(CancellationToken) : ValueTask

Clear storage.

cancellationToken
CancellationToken
GetAsync(CancellationToken) : ValueTask<ValueTuple<SecurityId, object>[]>

Get all native security identifiers.

cancellationToken
CancellationToken

Возвращает: Security identifiers.

RemoveByNativeIdAsync(object, bool, CancellationToken) : ValueTask<bool>

Remove by native identifier.

nativeId
Native (internal) trading system security id.
isPersistable
Save the identifier as a permanent.
cancellationToken
CancellationToken

Возвращает: Operation result.

RemoveBySecurityIdAsync(SecurityId, bool, CancellationToken) : ValueTask<bool>

Remove by security identifier.

securityId
Security identifier.
isPersistable
Save the identifier as a permanent.
cancellationToken
CancellationToken

Возвращает: Operation result.

TryAddAsync(SecurityId, object, bool, CancellationToken) : ValueTask<bool>

Try add native security identifier.

securityId
Security identifier.
nativeId
Native (internal) trading system security id.
isPersistable
Save the identifier as a permanent.
cancellationToken
CancellationToken

Возвращает: if native identifier was added. Otherwise, .

TryGetByNativeIdAsync(object, CancellationToken) : ValueTask<SecurityId?>

Try get security identifier by native identifier.

nativeId
Native (internal) trading system security id.
cancellationToken
CancellationToken

Возвращает: Security identifier.

TryGetBySecurityIdAsync(SecurityId, CancellationToken) : ValueTask<object>

Try get native security identifier by identifier.

securityId
Security identifier.
cancellationToken
CancellationToken

Возвращает: Native (internal) trading system security id.

События

Added : Func<SecurityId, object, CancellationToken, ValueTask>

The new native security identifier added to storage.