<PackageReference Include="Polly.Core" Version="8.5.1" />

ResilienceContext

public sealed class ResilienceContext
A context assigned to a single execution of ResiliencePipeline. It is created manually or automatically when the user calls the various extensions on top of ResiliencePipeline. After every execution the context should be discarded and returned to the pool.

Gets the CancellationToken associated with the execution.

public bool ContinueOnCapturedContext { get; }

Gets a value indicating whether the execution should continue on the captured context.

public string OperationKey { get; }

Gets a key unique to the call site of the current execution.

Gets the custom properties attached to the context.