Interface IOptionsUpdater<TOptions>
Used to retrieve and update TOptions instances.
public interface IOptionsUpdater<TOptions> : IOptionsMonitor<TOptions>
Type Parameters
TOptionsThe options type.
- Inherited Members
- Extension Methods
Methods
UpdateValue(string?, TOptions)
Updates the TOptions instance with the given name.
void UpdateValue(string? name, TOptions value)
Parameters
namestringThe name of the
TOptionsinstance. If null, DefaultName, which is the empty string, is used.valueTOptionsThe updated
TOptionsinstance.
Exceptions
- InvalidOperationException
There is no IUpdateableOptions<TOptions> service registered to perform the update.
- InvalidOperationException
There are multiple IUpdateableOptions<TOptions> services registered to perform the update.