Struct ResilienceContextCreationArguments
- Namespace
- Polly
- Assembly
- Polly.Core.dll
Arguments used by the ResilienceContextPool when creating ResilienceContext.
public readonly struct ResilienceContextCreationArguments- Inherited Members
Constructors
ResilienceContextCreationArguments(string?, bool?, CancellationToken)
Initializes a new instance of the ResilienceContextCreationArguments struct.
public ResilienceContextCreationArguments(string? operationKey, bool? continueOnCapturedContext, CancellationToken cancellationToken)Parameters
- operationKeystring
- The operation key, if any. 
- continueOnCapturedContextbool?
- Value indicating whether to continue on captured context. 
- cancellationTokenCancellationToken
- The cancellation token. 
Properties
CancellationToken
Gets the cancellation token.
public CancellationToken CancellationToken { get; }Property Value
ContinueOnCapturedContext
Gets the value indicating whether to continue on captured context, if any.
public bool? ContinueOnCapturedContext { get; }Property Value
- bool?
OperationKey
Gets the operation key, if any.
public string? OperationKey { get; }