ResilienceHandlerContext.EnableReloads<TOptions>(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables dynamic reloading of the resilience pipeline whenever the TOptions
options are changed.
public void EnableReloads<TOptions> (string? name = default);
member this.EnableReloads : string -> unit
Public Sub EnableReloads(Of TOptions) (Optional name As String = Nothing)
Type Parameters
- TOptions
The options type to listen to.
Parameters
- name
- String
The named options, if any.
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. By default, the name
parameter is null
.
You can listen for changes only for single options. If you call this method multiple times, the preceding calls are ignored and only the last one wins.
Applies to
.NET