IOptionsMonitor is an interface provided as a part of the IOptions framework provided in ASP.NET Core.
There are three interfaces provided by this namespace as a part of configuring TOptions instances.
- IOptionsSnapshot and
IOptionsMonitor returns the “CurrentValue” of the options along with notifications when the options change.
It is created as a SingletonService which can be injected into any service. It also supports updated options when the configuration changes after app starts. It also supports “named” options