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>

用于存储选项的缓存。

适用于