IOptionsMonitorCache<TOptions> インターフェイス

定義

TOptions インスタンスをキャッシュするためにIOptionsMonitor<TOptions>によって使用されます。

generic <typename TOptions>
 where TOptions : classpublic interface class IOptionsMonitorCache
public interface IOptionsMonitorCache<TOptions> where TOptions : class
type IOptionsMonitorCache<'Options (requires 'Options : null)> = interface
Public Interface IOptionsMonitorCache(Of TOptions)

型パラメーター

TOptions

要求されるオプションの種類。

派生

メソッド

名前 説明
Clear()

キャッシュからすべてのオプション インスタンスをクリアします。

GetOrAdd(String, Func<TOptions>)

名前付きオプション インスタンスを取得するか、 createOptionsで作成された新しいインスタンスを追加します。

TryAdd(String, TOptions)

キャッシュに新しいオプションを追加しようとします。

TryRemove(String)

オプション インスタンスの削除を試みます。

適用対象