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

定義

IOptionsMonitor<TOptions>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)

キャッシュに新しいオプションの追加を試みます。名前が既に存在する場合は、false が返されます。

TryRemove(String)

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

適用対象