When to use IOptionsMonitor?

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

ASP.NET Core Posted Jul 09, 2020

You can now show your support. 😊

We use cookies to provide you with a great user experience, analyze traffic and serve targeted promotions.   Learn More   Accept