Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​Extensions.​Options.​OptionsMonitorExtensions
Assembly: Microsoft.Extensions.Options
Inheritance: object → OptionsMonitorExtensions
Extension methods for <see cref="T:Microsoft.Extensions.Options.IOptionsMonitor`1" /> .
Methods
public static
System.​IDisposable
OnChange​(IOptionsMonitor<​TOptions> monitor,
System.​Action<​TOptions> listener)
Registers a listener to be called whenever <typeparamref name="TOptions" /> changes.
Returns An object that should be disposed to stop listening for changes.
monitor
The IOptionsMonitor.
listener
The action to be invoked when <typeparamref name="TOptions" /> has changed.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object