Microsoft.Extensions.Options.OptionsMonitor<TOptions>
Implements IOptionsMonitor<T>.
Gets the present value of the options (equivalent to Get(Options.DefaultName)).
public OptionsMonitor(IOptionsFactory<TOptions> factory, IEnumerable<IOptionsChangeTokenSource<TOptions>> sources, IOptionsMonitorCache<TOptions> cache)
Initializes a new instance of OptionsMonitor<T> with the specified factory, sources, and cache.
Removes all change registration subscriptions.
Returns a configured TOptions instance with the given name.
Registers a listener to be called whenever TOptions changes.