Table of Contents

Class RetryOptions

Namespace
DurableTask.Core
Assembly
DurableTask.Core.dll

Contains retry policies that can be passed as parameters to various operations

public class RetryOptions
Inheritance
RetryOptions
Inherited Members

Constructors

RetryOptions(TimeSpan, int)

Creates a new instance RetryOptions with the supplied first retry and max attempts

public RetryOptions(TimeSpan firstRetryInterval, int maxNumberOfAttempts)

Parameters

firstRetryInterval TimeSpan

Timespan to wait for the first retry

maxNumberOfAttempts int

Max number of attempts to retry

Exceptions

ArgumentException

Properties

BackoffCoefficient

Gets or sets the back-off coefficient defaults to 1, used to determine rate of increase of back-off

public double BackoffCoefficient { get; set; }

Property Value

double

FirstRetryInterval

Gets or sets the first retry interval

public TimeSpan FirstRetryInterval { get; set; }

Property Value

TimeSpan

Handle

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

public Func<Exception, bool> Handle { get; set; }

Property Value

Func<Exception, bool>

MaxNumberOfAttempts

Gets or sets the max number of attempts

public int MaxNumberOfAttempts { get; set; }

Property Value

int

MaxRetryInterval

Gets or sets the max retry interval defaults to TimeSpan.MaxValue

public TimeSpan MaxRetryInterval { get; set; }

Property Value

TimeSpan

RetryTimeout

Gets or sets the timeout for retries defaults to TimeSpan.MaxValue

public TimeSpan RetryTimeout { get; set; }

Property Value

TimeSpan