Compartilhar via


RetryPolicy Class

Definition

A declarative retry policy that can be configured for activity or sub-orchestration calls.

public class RetryPolicy
type RetryPolicy = class
Public Class RetryPolicy
Inheritance
RetryPolicy

Constructors

RetryPolicy(Int32, TimeSpan, Double, Nullable<TimeSpan>, Nullable<TimeSpan>)

Initializes a new instance of the RetryPolicy class.

Properties

BackoffCoefficient

Gets the exponential back-off coefficient used to determine the delay between subsequent retries.

FirstRetryInterval

Gets the amount of time to delay between the first and second attempt.

HandleAsync

Gets or sets a Func to call on exception to determine if retries should proceed.

MaxNumberOfAttempts

Gets the max number of attempts for executing a given task.

MaxRetryInterval

Gets the maximum time to delay between attempts.

RetryTimeout

Gets the overall timeout for retries. No further attempts will be made at executing a task after this retry timeout expires.

Applies to