RetryPolicy 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 type exposes the following members.
Constructors
Name | Description | |
---|---|---|
RetryPolicy(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.
|
|
RetryPolicy(ITransientErrorDetectionStrategy, Int32) |
Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and default fixed time interval between retries.
|
|
RetryPolicy(ITransientErrorDetectionStrategy, Int32, TimeSpan) |
Initializes a new instance of the RetryPolicy class with the specified number of retry attempts and fixed time interval between retries.
|
|
RetryPolicy(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.
|
|
RetryPolicy(ITransientErrorDetectionStrategy, 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 | |
---|---|---|
Equals | (Inherited from Object.) | |
ExecuteAction(Action) |
Repetitively executes the specified action while it satisfies the current retry policy.
|
|
ExecuteAction(Action<AsyncCallback>, Action<IAsyncResult>, Action, Action<Exception>) |
Repetitively executes the specified asynchronous action while it satisfies the current retry policy.
|
|
ExecuteAction<TResult>(Func<TResult>) |
Repetitively executes the specified action while it satisfies the current retry policy.
|
|
ExecuteAction<TResult>(Action<AsyncCallback>, Func<IAsyncResult, TResult>, Action<TResult>, Action<Exception>) |
Repetitively executes the specified asynchronous action while it satisfies the current retry policy.
|
|
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.) |
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
OnRetrying |
Notifies the subscribers whenever a retry condition is encountered.
|
|
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
DefaultExponential |
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.
|
|
DefaultFixed |
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.
|
|
DefaultProgressive |
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.
|
|
NoRetry |
Returns a default policy that does no retries, it just invokes action exactly once.
|
Properties
Name | Description | |
---|---|---|
ErrorDetectionStrategy |
Gets the instance of the error detection strategy.
|
|
RetryStrategy |
Gets the retry strategy.
|
Events
Name | Description | |
---|---|---|
Retrying |
An instance of a callback delegate that will be invoked whenever a retry condition is encountered.
|