A simple class that allows to execute an Action or Func with retries.
Inheritance Hierarchy
System.Object
  Microsoft.TeamFoundation.Common.RetryManager
Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public NotInheritable Class RetryManager
public sealed class RetryManager
public ref class RetryManager sealed
[<Sealed>]
type RetryManager =  class end
public final class RetryManager
The RetryManager type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | RetryManager(Int32) | Initializes a new instance of the the RetryManager class. | 
| .gif) | RetryManager(Int32, Action<Exception>) | Initializes a new instance of the the RetryManager class. | 
| .gif) | RetryManager(Int32, TimeSpan) | Initializes a new instance of the the RetryManager class. | 
| .gif) | RetryManager(Int32, TimeSpan, Action<Exception>) | Initializes a new instance of the the RetryManager class. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | Invoke(Action) | Executes specified action with retries. | 
| .gif) | Invoke<T>(Action<T>, T) | Executes specified action with retries. | 
| .gif) | Invoke<T1, T2>(Action<T1, T2>, T1, T2) | Executes specified action with retries. | 
| .gif) | Invoke<T1, T2, T3>(Action<T1, T2, T3>, T1, T2, T3) | Executes specified action with retries. | 
| .gif) | Invoke<T1, T2, T3, T4>(Action<T1, T2, T3, T4>, T1, T2, T3, T4) | Executes specified action with retries. | 
| .gif) | InvokeFunc<TResult>(Func<TResult>) | Executes specified Func with retries. | 
| .gif) | InvokeFunc<T, TResult>(Func<T, TResult>, T) | Executes specified Func with retries. | 
| .gif) | InvokeFunc<T1, T2, TResult>(Func<T1, T2, TResult>, T1, T2) | Executes specified Func with retries. | 
| .gif) | InvokeFunc<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult>, T1, T2, T3) | Executes specified Func with retries. | 
| .gif) | InvokeFunc<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4) | Executes specified Func with retries. | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.