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

Polly.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.
namespace Polly { public sealed class ResilienceContext { public string OperationKey { get; } public CancellationToken CancellationToken { get; } public bool ContinueOnCapturedContext { get; } public ResilienceProperties Properties { get; } } }