IOptionsMonitorCache<TOptions> Rozhraní

Definice

IOptionsMonitor<TOptions> Používá se k ukládání instancí do mezipamětiTOptions.

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)

Parametry typu

TOptions

Typ požadovaných možností.

Odvozené

Metody

Name Description
Clear()

Vymaže všechny instance možností z mezipaměti.

GetOrAdd(String, Func<TOptions>)

Získá pojmenovanou instanci možností nebo přidá novou instanci vytvořenou pomocí createOptions.

TryAdd(String, TOptions)

Pokusí se do mezipaměti přidat novou možnost.

TryRemove(String)

Pokusí se odebrat instanci možností.

Platí pro