RetryPolicy Constructor (ITransientErrorDetectionStrategy, Int32, TimeSpan, TimeSpan, TimeSpan)
Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and backoff parameters for calculating the exponential delay between retries.
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
public RetryPolicy( ITransientErrorDetectionStrategy errorDetectionStrategy, int retryCount, TimeSpan minBackoff, TimeSpan maxBackoff, TimeSpan deltaBackoff )
Parameters
- errorDetectionStrategy
-
Type:
Microsoft.WindowsAzure.Common.TransientFaultHandling.ITransientErrorDetectionStrategy
The ITransientErrorDetectionStrategy that is responsible for detecting transient conditions.
- retryCount
-
Type:
System.Int32
The number of retry attempts.
- minBackoff
-
Type:
System.TimeSpan
The minimum backoff time.
- maxBackoff
-
Type:
System.TimeSpan
The maximum backoff time.
- deltaBackoff
-
Type:
System.TimeSpan
The time value that will be used to calculate a random delta in the exponential delay between retries.
Show: