Class ConfigureBuilderContext<TKey>
The context used by ResiliencePipelineRegistry<TKey>.
public class ConfigureBuilderContext<TKey> where TKey : notnull
Type Parameters
TKey
The type of the key.
- Inheritance
-
ConfigureBuilderContext<TKey>
- Inherited Members
Properties
PipelineKey
Gets the pipeline key for the pipeline being created.
public TKey PipelineKey { get; }
Property Value
- TKey
Methods
AddReloadToken(CancellationToken)
Reloads the pipeline when cancellationToken
is canceled.
public void AddReloadToken(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenThe cancellation token that triggers the pipeline reload when cancelled.
Remarks
You can add multiple reload tokens to the context. Non-cancelable or already canceled tokens are ignored.
OnPipelineDisposed(Action)
Registers a callback that is called when the pipeline instance being configured is disposed.
public void OnPipelineDisposed(Action callback)
Parameters
callback
ActionThe callback delegate.