Sdílet prostřednictvím


OptionsMonitor<TOptions> Konstruktory

Definice

Přetížení

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

Konstruktor

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

Konstruktor

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

Konstruktor

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

Parametry

setups
IEnumerable<IConfigureOptions<TOptions>>

Akce konfigurace, které se mají spustit v instanci možností.

sources
IEnumerable<IOptionsChangeTokenSource<TOptions>>

Zdroje používané k naslouchání změnám instance možností.

Platí pro

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

Konstruktor

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))>
new Microsoft.Extensions.Options.OptionsMonitor<'Options (requires 'Options : null)> : Microsoft.Extensions.Options.IOptionsFactory<'Options (requires 'Options : null)> * seq<Microsoft.Extensions.Options.IOptionsChangeTokenSource<'Options>> * Microsoft.Extensions.Options.IOptionsMonitorCache<'Options (requires 'Options : null)> -> Microsoft.Extensions.Options.OptionsMonitor<'Options (requires 'Options : null)>
Public Sub New (factory As IOptionsFactory(Of TOptions), sources As IEnumerable(Of IOptionsChangeTokenSource(Of TOptions)), cache As IOptionsMonitorCache(Of TOptions))

Parametry

factory
IOptionsFactory<TOptions>

Továrna, která se má použít k vytváření možností.

sources
IEnumerable<IOptionsChangeTokenSource<TOptions>>

Zdroje používané k naslouchání změnám instance možností.

cache
IOptionsMonitorCache<TOptions>

Mezipaměť použitá k ukládání možností.

Platí pro