共用方式為


OptionsMonitor<TOptions> 建構函式

定義

建構函式。

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

參數

factory
IOptionsFactory<TOptions>

用來建立選項的工廠。

sources
IEnumerable<IOptionsChangeTokenSource<TOptions>>

用來接聽選項執行個體變更的來源。

cache
IOptionsMonitorCache<TOptions>

用來儲存選項的快取。

適用於