Table of Contents

Struct OnTimeoutArguments

Namespace
Polly.Timeout
Assembly
Polly.Core.dll

Arguments used by the timeout strategy to notify that a timeout occurred.

public readonly struct OnTimeoutArguments
Inherited Members

Remarks

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

Constructors

OnTimeoutArguments(ResilienceContext, TimeSpan)

Initializes a new instance of the OnTimeoutArguments struct.

public OnTimeoutArguments(ResilienceContext context, TimeSpan timeout)

Parameters

context ResilienceContext

The context associated with the execution of a user-provided callback.

timeout TimeSpan

The timeout value assigned.

Properties

Context

Gets the context associated with the execution of a user-provided callback.

public ResilienceContext Context { get; }

Property Value

ResilienceContext

Timeout

Gets the timeout value assigned.

public TimeSpan Timeout { get; }

Property Value

TimeSpan