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

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
Default image
Sriram Mannava

I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity.

Leave a Reply