Share via


RetryPolicy Constructor (ITransientErrorDetectionStrategy, Int32, TimeSpan)

 

Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and fixed time interval between retries.

Namespace:   Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Syntax

public RetryPolicy(
    ITransientErrorDetectionStrategy errorDetectionStrategy,
    int retryCount,
    TimeSpan retryInterval
)
public:
RetryPolicy(
    ITransientErrorDetectionStrategy^ errorDetectionStrategy,
    int retryCount,
    TimeSpan retryInterval
)
new : 
        errorDetectionStrategy:ITransientErrorDetectionStrategy *
        retryCount:int *
        retryInterval:TimeSpan -> RetryPolicy
Public Sub New (
    errorDetectionStrategy As ITransientErrorDetectionStrategy,
    retryCount As Integer,
    retryInterval As TimeSpan
)

Parameters

  • retryCount
    Type: System.Int32

    The number of retry attempts.

See Also

RetryPolicy Overload
RetryPolicy Class
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace

Return to top