Lezen in het Engels

Delen via


RetryContext Class

Definition

The context passed to NextRetryDelay(RetryContext) to help the policy determine how long to wait before the next retry and whether there should be another retry at all.

C#
public sealed class RetryContext
Inheritance
RetryContext

Constructors

Properties

ElapsedTime

The amount of time spent retrying so far.

PreviousRetryCount

The number of consecutive failed retries so far.

RetryReason

The error precipitating the current retry if any.

Applies to

Product Versies
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0