Condividi tramite


OptionsMonitor<TOptions> Costruttori

Definizione

Overload

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

Costruttore.

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

Costruttore.

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

Costruttore.

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

Parametri

setups
IEnumerable<IConfigureOptions<TOptions>>

Azioni di configurazione da eseguire su un'istanza delle opzioni.

sources
IEnumerable<IOptionsChangeTokenSource<TOptions>>

Origini usate per restare in ascolto delle modifiche apportate all'istanza delle opzioni.

Si applica a

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

Costruttore.

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

Parametri

factory
IOptionsFactory<TOptions>

Factory da usare per creare le opzioni.

sources
IEnumerable<IOptionsChangeTokenSource<TOptions>>

Origini usate per restare in ascolto delle modifiche apportate all'istanza delle opzioni.

cache
IOptionsMonitorCache<TOptions>

Cache usata per archiviare le opzioni.

Si applica a