RetryPolicy Class

 

Provides the base implementation of the retry mechanism for unreliable actions and transient conditions.

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

System.Object
  Microsoft.WindowsAzure.Common.TransientFaultHandling.RetryPolicy
    Microsoft.WindowsAzure.Common.TransientFaultHandling.RetryPolicy<T>

public class RetryPolicy

NameDescription
System_CAPS_pubmethodRetryPolicy(ITransientErrorDetectionStrategy, Int32)

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

System_CAPS_pubmethodRetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan)

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

System_CAPS_pubmethodRetryPolicy(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.

System_CAPS_pubmethodRetryPolicy(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.

System_CAPS_pubmethodRetryPolicy(ITransientErrorDetectionStrategy, RetryStrategy)

Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and parameters defining the progressive delay between retries.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticDefaultExponential

Returns a default policy that implements a random exponential retry interval configured with the default FixedInterval retry strategy. The default retry policy treats all caught exceptions as transient errors.

System_CAPS_pubpropertySystem_CAPS_staticDefaultFixed

Returns a default policy that implements a fixed retry interval configured with the default FixedInterval retry strategy. The default retry policy treats all caught exceptions as transient errors.

System_CAPS_pubpropertySystem_CAPS_staticDefaultProgressive

Returns a default policy that implements a progressive retry interval configured with the default Incremental retry strategy. The default retry policy treats all caught exceptions as transient errors.

System_CAPS_pubpropertyErrorDetectionStrategy

Gets the instance of the error detection strategy.

System_CAPS_pubpropertySystem_CAPS_staticNoRetry

Returns a default policy that performs no retries, but invokes the action only once.

System_CAPS_pubpropertyRetryStrategy

Gets the retry strategy.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecuteAction(Action)

Repetitively executes the specified action while it satisfies the current retry policy.

System_CAPS_pubmethodExecuteAction<TResult>(Func<TResult>)

Repetitively executes the specified action while it satisfies the current retry policy.

System_CAPS_pubmethodExecuteAsync(Func<Task>)

Repetitively executes the specified asynchronous task while it satisfies the current retry policy.

System_CAPS_pubmethodExecuteAsync(Func<Task>, CancellationToken)

Repetitively executes the specified asynchronous task while it satisfies the current retry policy.

System_CAPS_pubmethodExecuteAsync<TResult>(Func<Task<TResult>>)

Repeatedly executes the specified asynchronous task while it satisfies the current retry policy.

System_CAPS_pubmethodExecuteAsync<TResult>(Func<Task<TResult>>, CancellationToken)

Repeatedly executes the specified asynchronous task while it satisfies the current retry policy.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnRetrying(Int32, Exception, TimeSpan)

Notifies the subscribers whenever a retry condition is encountered.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventRetrying

An instance of a callback delegate that will be invoked whenever a retry condition is encountered.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: