Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IOptionsMonitorCache<TOptions> Interface

Definition

Namespace:
Microsoft.Extensions.Options
Assembly:
Microsoft.Extensions.Options.dll
Package:
Microsoft.Extensions.Options v11.0.0-preview.5.26302.115
Source:
IOptionsMonitorCache.cs
Source:
IOptionsMonitorCache.cs
Source:
IOptionsMonitorCache.cs
Source:
IOptionsMonitorCache.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Used by IOptionsMonitor<TOptions> to cache TOptions instances.

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)

Type Parameters

TOptions

The type of options being requested.

Derived

Methods

Name Description
Clear()

Clears all options instances from the cache.

GetOrAdd(String, Func<TOptions>)

Gets a named options instance, or adds a new instance created with createOptions.

TryAdd(String, TOptions)

Tries to adds a new option to the cache.

TryRemove(String)

Tries to remove an options instance.

Applies to


Feedback

Was this page helpful?