Table of Contents

Struct RetryDelayGeneratorArguments<TResult>

Namespace
Polly.Retry
Assembly
Polly.Core.dll

Represents the arguments used by DelayGenerator for generating the next retry delay.

public readonly struct RetryDelayGeneratorArguments<TResult>

Type Parameters

TResult

The type of result.

Inherited Members

Remarks

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

Constructors

RetryDelayGeneratorArguments(ResilienceContext, Outcome<TResult>, int)

Initializes a new instance of the RetryDelayGeneratorArguments<TResult> struct.

public RetryDelayGeneratorArguments(ResilienceContext context, Outcome<TResult> outcome, int attemptNumber)

Parameters

context ResilienceContext

The outcome of the resilience operation or event.

outcome Outcome<TResult>

The context in which the resilience operation or event occurred.

attemptNumber int

The zero-based attempt number.

Properties

AttemptNumber

Gets The zero-based attempt number.

public int AttemptNumber { get; }

Property Value

int

Context

Gets the context in which the resilience operation or event occurred.

public ResilienceContext Context { get; }

Property Value

ResilienceContext

Outcome

Gets the outcome of the resilience operation or event.

public Outcome<TResult> Outcome { get; }

Property Value

Outcome<TResult>