Table of Contents

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

operationKey string

The operation key, if any.

continueOnCapturedContext bool?

Value indicating whether to continue on captured context.

cancellationToken CancellationToken

The cancellation token.

Properties

CancellationToken

Gets the cancellation token.

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

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; }

Property Value

string