ExponentialBackoff Constructor (String, Int32, TimeSpan, TimeSpan, TimeSpan, Boolean)
Initializes a new instance of the ExponentialBackoff class with the specified name, retry settings, and fast retry option.
Namespace: Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Syntax
public ExponentialBackoff(
string name,
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff,
bool firstFastRetry
)
public:
ExponentialBackoff(
String^ name,
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff,
bool firstFastRetry
)
new :
name:string *
retryCount:int *
minBackoff:TimeSpan *
maxBackoff:TimeSpan *
deltaBackoff:TimeSpan *
firstFastRetry:bool -> ExponentialBackoff
Public Sub New (
name As String,
retryCount As Integer,
minBackoff As TimeSpan,
maxBackoff As TimeSpan,
deltaBackoff As TimeSpan,
firstFastRetry As Boolean
)
Parameters
name
Type: System.StringThe name of the retry strategy.
retryCount
Type: System.Int32The maximum number of retry attempts.
minBackoff
Type: System.TimeSpanThe minimum backoff time
maxBackoff
Type: System.TimeSpanThe maximum backoff time.
deltaBackoff
Type: System.TimeSpanThe value that will be used to calculate a random delta in the exponential delay between retries.
firstFastRetry
Type: System.Booleantrue to immediately retry in the first attempt; otherwise, false. The subsequent retries will remain subject to the configured retry interval.
See Also
ExponentialBackoff Overload
ExponentialBackoff Class
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace
Return to top