Megosztás a következőn keresztül:


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.

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

Syntax

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

Parameters

  • retryCount
    Type: System.Int32

    The number of retry attempts.

  • deltaBackoff
    Type: System.TimeSpan

    The time value that will be used to calculate a random delta in the exponential delay between retries.

See Also

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

Return to top