Class ConfigureBuilderContextExtensions
Extensions for ConfigureBuilderContext<TKey>.
public static class ConfigureBuilderContextExtensions
- Inheritance
-
ConfigureBuilderContextExtensions
- Inherited Members
Methods
EnableReloads<TKey, TOptions>(ConfigureBuilderContext<TKey>, IOptionsMonitor<TOptions>, string?)
Enables dynamic reloading of the resilience pipeline whenever the TOptions options are changed.
public static void EnableReloads<TKey, TOptions>(this ConfigureBuilderContext<TKey> context, IOptionsMonitor<TOptions> optionsMonitor, string? name = null) where TKey : notnull
Parameters
contextConfigureBuilderContext<TKey>The builder context.
optionsMonitorIOptionsMonitor<TOptions>The options monitor.
namestringThe named options, if any.
Type Parameters
TKeyThe type of the key used to identify the resilience pipeline.
TOptionsThe options type to listen to.
Remarks
You can decide based on the name to listen for changes in global options or named options.
If name is null then the global options are listened to.
You can listen for changes from multiple options by calling this method with different TOptions types.