<PackageReference Include="Microsoft.Extensions.Options" Version="10.0.7" />

Microsoft.Extensions.Options.IOptionsMonitor<TOptions>

public interface IOptionsMonitor<TOptions>
Monitors changes on a TOptions instance.
TOptions CurrentValue { get; }

Gets the current TOptions instance with the DefaultName.

TOptions Get(string name)

Returns a configured TOptions instance with the given name.

IDisposable OnChange(Action<TOptions, string> listener)

Registers a listener to be called whenever a named TOptions changes.