InMemorySecurityStorage

StockSharp.Algo.Storages

ISecurityStorage@のメモリ実装

実装: ISecurityStorage, ISecurityProvider, ISecurityMessageProvider

コンストラクター

InMemorySecurityStorage
public InMemorySecurityStorage()
inMemorySecurityStorage = InMemorySecurityStorage()

InMemorySecurityStorage の新規インスタンスを初期化します。

InMemorySecurityStorage
public InMemorySecurityStorage(ISecurityProvider underlying)
inMemorySecurityStorage = InMemorySecurityStorage(underlying)

InMemorySecurityStorage の新規インスタンスを初期化します。

underlying
アンダーリーティングプロバイダー。

メソッド

DeleteAsync
public ValueTask DeleteAsync(Security security, CancellationToken cancellationToken)
result = inMemorySecurityStorage.DeleteAsync(security, cancellationToken)

金融商品を削除します。

security
金融商品取引
cancellationToken
キャンセルトークン。

戻り値: 操作タスク。

DeleteByAsync
public ValueTask DeleteByAsync(SecurityLookupMessage criteria, CancellationToken cancellationToken)
result = inMemorySecurityStorage.DeleteByAsync(criteria, cancellationToken)

基準で楽器を削除する。

criteria
基準。
cancellationToken
キャンセルトークン。

戻り値: 操作タスク。

DeleteRangeAsync
public ValueTask DeleteRangeAsync(IEnumerable<Security> securities, CancellationToken cancellationToken)
result = inMemorySecurityStorage.DeleteRangeAsync(securities, cancellationToken)

金融商品を削除します。

securities
金融商品取引
cancellationToken
キャンセルトークン。

戻り値: 操作タスク。

LookupAsync
public IAsyncEnumerable<Security> LookupAsync(SecurityLookupMessage criteria)
result = inMemorySecurityStorage.LookupAsync(criteria)

基準による金融商品を探る。

criteria
特定基準のメッセージ財務機器の検索

戻り値: 鋳造された器械。

LookupByIdAsync
public ValueTask<Security> LookupByIdAsync(SecurityId id, CancellationToken cancellationToken)
result = inMemorySecurityStorage.LookupByIdAsync(id, cancellationToken)

識別子で機器を取得するには.

id
金融商品ID
cancellationToken
担当: 佐藤 宏

戻り値: 取得楽器。条件を与えられた楽器がない場合、返却されます。

SaveAsync
public ValueTask SaveAsync(Security security, bool forced, CancellationToken cancellationToken)
result = inMemorySecurityStorage.SaveAsync(security, forced, cancellationToken)

金融商品を保存します。

security
金融商品取引
forced
強制的な更新。
cancellationToken
キャンセルトークン。

戻り値: 操作タスク。

イベント

Added
public event Action<IEnumerable<Security>> Added
inMemorySecurityStorage.Added += handler

新規のネイティブ金融商品識別子がストレージに追加されました。

Cleared
public event Action Cleared
inMemorySecurityStorage.Cleared += handler

保管はクリアされました。

Removed
public event Action<IEnumerable<Security>> Removed
inMemorySecurityStorage.Removed += handler

機器の削除。