Condividi tramite


OptionsMonitor<TOptions> Costruttore

Definizione

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