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
TimeSpanTimespan to wait for the first retry
maxNumberOfAttempts
intMax number of attempts to retry
Exceptions
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
FirstRetryInterval
Gets or sets the first retry interval
public TimeSpan FirstRetryInterval { get; set; }
Property Value
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
MaxNumberOfAttempts
Gets or sets the max number of attempts
public int MaxNumberOfAttempts { get; set; }
Property Value
MaxRetryInterval
Gets or sets the max retry interval defaults to TimeSpan.MaxValue
public TimeSpan MaxRetryInterval { get; set; }
Property Value
RetryTimeout
Gets or sets the timeout for retries defaults to TimeSpan.MaxValue
public TimeSpan RetryTimeout { get; set; }