IOptionsSnapshot<T>

The options interface registered as scoped, recomputed once per scope, so in a web app an edited setting appears on the next request.

In more detail

Each scope gets values bound from the configuration as it stood when the scope began. Because it is scoped, it cannot be injected into a singleton; scope validation catches that.

Related terms

Taught in

References