RetryPolicy Constructor (ITransientErrorDetectionStrategy, Int32, TimeSpan, TimeSpan)
Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and parameters defining the progressive delay between retries.
Namespace: Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Syntax
public RetryPolicy(
ITransientErrorDetectionStrategy errorDetectionStrategy,
int retryCount,
TimeSpan initialInterval,
TimeSpan increment
)
public:
RetryPolicy(
ITransientErrorDetectionStrategy^ errorDetectionStrategy,
int retryCount,
TimeSpan initialInterval,
TimeSpan increment
)
new :
errorDetectionStrategy:ITransientErrorDetectionStrategy *
retryCount:int *
initialInterval:TimeSpan *
increment:TimeSpan -> RetryPolicy
Public Sub New (
errorDetectionStrategy As ITransientErrorDetectionStrategy,
retryCount As Integer,
initialInterval As TimeSpan,
increment As TimeSpan
)
Parameters
errorDetectionStrategy
Type: Microsoft.WindowsAzure.Common.TransientFaultHandling.ITransientErrorDetectionStrategyThe ITransientErrorDetectionStrategy that is responsible for detecting transient conditions.
retryCount
Type: System.Int32The number of retry attempts.
initialInterval
Type: System.TimeSpanThe initial interval that will apply for the first retry.
increment
Type: System.TimeSpanThe incremental time value that will be used to calculate the progressive delay between retries.
See Also
RetryPolicy Overload
RetryPolicy Class
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace
Return to top