RetryPolicy<T> Members
Include Protected Members
Include Inherited Members
The RetryPolicy<T> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
RetryPolicy<T>(Int32) |
Initializes a new instance of the RetryPolicy<T> class with the specified number of retry attempts and the default fixed time interval between retries.
|
![]() |
RetryPolicy<T>(RetryStrategy) |
Initializes a new instance of the RetryPolicy<T> class with the specified number of retry attempts and parameters defining the progressive delay between retries.
|
![]() |
RetryPolicy<T>(Int32, TimeSpan) |
Initializes a new instance of the RetryPolicy<T> class with the specified number of retry attempts and a fixed time interval between retries.
|
![]() |
RetryPolicy<T>(Int32, TimeSpan, TimeSpan) |
Initializes a new instance of the RetryPolicy<T> class with the specified number of retry attempts and parameters defining the progressive delay between retries.
|
![]() |
RetryPolicy<T>(Int32, TimeSpan, TimeSpan, TimeSpan) |
Initializes a new instance of the RetryPolicy<T> class with the specified number of retry attempts and backoff 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.
(Inherited from RetryPolicy.) |
![]() |
ExecuteAction<TResult>(Func<TResult>) |
Repetitively executes the specified action while it satisfies the current retry policy.
(Inherited from RetryPolicy.) |
![]() |
ExecuteAsync(Func<Task>) |
Repetitively executes the specified asynchronous task while it satisfies the current retry policy.
(Inherited from RetryPolicy.) |
![]() |
ExecuteAsync(Func<Task>, CancellationToken) |
Repetitively executes the specified asynchronous task while it satisfies the current retry policy.
(Inherited from RetryPolicy.) |
![]() |
ExecuteAsync<TResult>(Func<Task<TResult>>) |
Repeatedly executes the specified asynchronous task while it satisfies the current retry policy.
(Inherited from RetryPolicy.) |
![]() |
ExecuteAsync<TResult>(Func<Task<TResult>>, CancellationToken) |
Repeatedly executes the specified asynchronous task while it satisfies the current retry policy.
(Inherited from RetryPolicy.) |
![]() |
Finalize |
Allows an object to try to free resources and perform other cleanup operations before it 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.
(Inherited from RetryPolicy.) |
![]() |
ToString |
Returns a string that represents the current object.
(Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() |
ErrorDetectionStrategy |
Gets the instance of the error detection strategy.
(Inherited from RetryPolicy.) |
![]() |
RetryStrategy |
Gets the retry strategy.
(Inherited from RetryPolicy.) |
Events
Name | Description | |
---|---|---|
![]() |
Retrying |
An instance of a callback delegate that will be invoked whenever a retry condition is encountered.
(Inherited from RetryPolicy.) |
See Also
Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace