OptionsManager<TOptions> OptionsManager<TOptions> OptionsManager<TOptions> Class

Definition

Implementation of IOptions and IOptionsSnapshot.

public class OptionsManager<TOptions> : Microsoft.Extensions.Options.IOptions<TOptions>, Microsoft.Extensions.Options.IOptionsSnapshot<TOptions> where TOptions : class, new()
type OptionsManager<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
    interface IOptions<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
    interface IOptionsSnapshot<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
Public Class OptionsManager(Of TOptions)
Implements IOptions(Of TOptions), IOptionsSnapshot(Of TOptions)

Type Parameters

TOptions
Inheritance
OptionsManager<TOptions>OptionsManager<TOptions>OptionsManager<TOptions>
Implements

Constructors

OptionsManager<TOptions>(IOptionsFactory<TOptions>) OptionsManager<TOptions>(IOptionsFactory<TOptions>) OptionsManager<TOptions>(IOptionsFactory<TOptions>)

Initializes a new instance with the specified options configurations.

OptionsManager<TOptions>(IEnumerable<IConfigureOptions<TOptions>>) OptionsManager<TOptions>(IEnumerable<IConfigureOptions<TOptions>>) OptionsManager<TOptions>(IEnumerable<IConfigureOptions<TOptions>>)

Initializes a new instance with the specified options configurations.

Properties

Value Value Value

The default configured TOptions instance, equivalent to Get(Options.DefaultName).

Methods

Get(String) Get(String) Get(String)

Returns a configured TOptions instance with the given name.

Applies to