RetryManager Class

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
Public method RetryManager(Int32) Initializes a new instance of the the RetryManager class.
Public method RetryManager(Int32, Action<Exception>) Initializes a new instance of the the RetryManager class.
Public method RetryManager(Int32, TimeSpan) Initializes a new instance of the the RetryManager class.
Public method RetryManager(Int32, TimeSpan, Action<Exception>) Initializes a new instance of the the RetryManager class.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Invoke(Action) Executes specified action with retries.
Public method Invoke<T>(Action<T>, T) Executes specified action with retries.
Public method Invoke<T1, T2>(Action<T1, T2>, T1, T2) Executes specified action with retries.
Public method Invoke<T1, T2, T3>(Action<T1, T2, T3>, T1, T2, T3) Executes specified action with retries.
Public method Invoke<T1, T2, T3, T4>(Action<T1, T2, T3, T4>, T1, T2, T3, T4) Executes specified action with retries.
Public method InvokeFunc<TResult>(Func<TResult>) Executes specified Func with retries.
Public method InvokeFunc<T, TResult>(Func<T, TResult>, T) Executes specified Func with retries.
Public method InvokeFunc<T1, T2, TResult>(Func<T1, T2, TResult>, T1, T2) Executes specified Func with retries.
Public method InvokeFunc<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult>, T1, T2, T3) Executes specified Func with retries.
Public method InvokeFunc<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult>, T1, T2, T3, T4) Executes specified Func with retries.
Public method 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.

See Also

Reference

Microsoft.TeamFoundation.Common Namespace