Table of Contents

Struct ExecutionAttemptArguments

Namespace
Polly.Telemetry
Assembly
Polly.Core.dll

Arguments that encapsulate the execution attempt for retries or hedging.

public readonly struct ExecutionAttemptArguments
Inherited Members

Remarks

Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.

Constructors

ExecutionAttemptArguments(int, TimeSpan, bool)

Initializes a new instance of the ExecutionAttemptArguments struct.

public ExecutionAttemptArguments(int attemptNumber, TimeSpan duration, bool handled)

Parameters

attemptNumber int

The execution attempt number.

duration TimeSpan

The execution duration.

handled bool

Determines whether the attempt was handled by the strategy.

Properties

AttemptNumber

Gets the attempt number.

public int AttemptNumber { get; }

Property Value

int

Duration

Gets the execution duration of the attempt.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Handled

Gets a value indicating whether the outcome was handled by retry or hedging strategy.

public bool Handled { get; }

Property Value

bool