<PackageReference Include="Polly.Core" Version="8.0.0-alpha.9" />

ResilienceContextCreationArguments

Arguments used by the ResilienceContextPool when creating ResilienceContext.

Gets the cancellation token.

public bool? ContinueOnCapturedContext { get; }

Gets the value indicating whether to continue on captured context, if any.

public string OperationKey { get; }

Gets the operation key, if any.

public ResilienceContextCreationArguments(string operationKey, bool? continueOnCapturedContext, CancellationToken cancellationToken)

Initializes a new instance of the ResilienceContextCreationArguments struct.