Share via


RetryPolicy<T> Members

Include Protected Members
Include Inherited Members

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information, see Transient Fault Handling.

The RetryPolicy<T> type exposes the following members.

Constructors

  Name Description
Public method RetryPolicy<T>(Int32)
Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and default fixed time interval between retries.
Public method RetryPolicy<T>(RetryStrategy)
Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and parameters defining the progressive delay between retries.
Public method RetryPolicy<T>(Int32, TimeSpan)
Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and fixed time interval between retries.
Public method RetryPolicy<T>(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.
Public method RetryPolicy<T>(Int32, TimeSpan, TimeSpan, TimeSpan)
Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and back-off parameters for calculating the exponential delay between retries.

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method ExecuteAction(Action)
Repetitively executes the specified action while it satisfies the current retry policy.
(Inherited from RetryPolicy.)
Public method ExecuteAction(Action<AsyncCallback>, Action<IAsyncResult>, Action, Action<Exception>)
Repetitively executes the specified asynchronous action while it satisfies the current retry policy.
(Inherited from RetryPolicy.)
Public method ExecuteAction<TResult>(Func<TResult>)
Repetitively executes the specified action while it satisfies the current retry policy.
(Inherited from RetryPolicy.)
Public method ExecuteAction<TResult>(Action<AsyncCallback>, Func<IAsyncResult, TResult>, Action<TResult>, Action<Exception>)
Repetitively executes the specified asynchronous action while it satisfies the current retry policy.
(Inherited from RetryPolicy.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method OnRetrying
Notifies the subscribers whenever a retry condition is encountered.
(Inherited from RetryPolicy.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  Name Description
Public property ErrorDetectionStrategy
Gets the instance of the error detection strategy.
(Inherited from RetryPolicy.)
Public property RetryStrategy
Gets the retry strategy.
(Inherited from RetryPolicy.)

Events

  Name Description
Public event Retrying
An instance of a callback delegate that will be invoked whenever a retry condition is encountered.
(Inherited from RetryPolicy.)

See Also

RetryPolicy<T> Class

Microsoft.Practices.TransientFaultHandling Namespace