OptionsMonitor<TOptions> Constructors

Definition

Overloads

OptionsMonitor<TOptions>(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IOptionsChangeTokenSource<TOptions>>)

Constructor.

OptionsMonitor<TOptions>(IOptionsFactory<TOptions>, IEnumerable<IOptionsChangeTokenSource<TOptions>>, IOptionsMonitorCache<TOptions>)

Constructor.

OptionsMonitor<TOptions>(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IOptionsChangeTokenSource<TOptions>>)

Constructor.

public:
 OptionsMonitor(System::Collections::Generic::IEnumerable<Microsoft::Extensions::Options::IConfigureOptions<TOptions> ^> ^ setups, System::Collections::Generic::IEnumerable<Microsoft::Extensions::Options::IOptionsChangeTokenSource<TOptions> ^> ^ sources);
public OptionsMonitor (System.Collections.Generic.IEnumerable<Microsoft.Extensions.Options.IConfigureOptions<TOptions>> setups, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Options.IOptionsChangeTokenSource<TOptions>> sources);
new Microsoft.Extensions.Options.OptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> : seq<Microsoft.Extensions.Options.IConfigureOptions<'Options>> * seq<Microsoft.Extensions.Options.IOptionsChangeTokenSource<'Options>> -> Microsoft.Extensions.Options.OptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
Public Sub New (setups As IEnumerable(Of IConfigureOptions(Of TOptions)), sources As IEnumerable(Of IOptionsChangeTokenSource(Of TOptions)))

Parameters

setups
IEnumerable<IConfigureOptions<TOptions>>

The configuration actions to run on an options instance.

sources
IEnumerable<IOptionsChangeTokenSource<TOptions>>

The sources used to listen for changes to the options instance.

OptionsMonitor<TOptions>(IOptionsFactory<TOptions>, IEnumerable<IOptionsChangeTokenSource<TOptions>>, IOptionsMonitorCache<TOptions>)

Constructor.

public:
 OptionsMonitor(Microsoft::Extensions::Options::IOptionsFactory<TOptions> ^ factory, System::Collections::Generic::IEnumerable<Microsoft::Extensions::Options::IOptionsChangeTokenSource<TOptions> ^> ^ sources, Microsoft::Extensions::Options::IOptionsMonitorCache<TOptions> ^ cache);
public OptionsMonitor (Microsoft.Extensions.Options.IOptionsFactory<TOptions> factory, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Options.IOptionsChangeTokenSource<TOptions>> sources, Microsoft.Extensions.Options.IOptionsMonitorCache<TOptions> cache);
new Microsoft.Extensions.Options.OptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> : Microsoft.Extensions.Options.IOptionsFactory<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> * seq<Microsoft.Extensions.Options.IOptionsChangeTokenSource<'Options>> * Microsoft.Extensions.Options.IOptionsMonitorCache<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> -> Microsoft.Extensions.Options.OptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
Public Sub New (factory As IOptionsFactory(Of TOptions), sources As IEnumerable(Of IOptionsChangeTokenSource(Of TOptions)), cache As IOptionsMonitorCache(Of TOptions))

Parameters

factory
IOptionsFactory<TOptions>

The factory to use to create options.

sources
IEnumerable<IOptionsChangeTokenSource<TOptions>>

The sources used to listen for changes to the options instance.

cache
IOptionsMonitorCache<TOptions>

The cache used to store options.

Applies to