This documentation is archived and is not being maintained.

RetryManager Class

A simple class that allows to execute an Action or Func with retries.

System.Object
  Microsoft.TeamFoundation.Common.RetryManager

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

public final class RetryManager

The RetryManager type exposes the following members.

  NameDescription
Public methodRetryManager(Int32)Initializes a new instance of the the RetryManager class.
Public methodRetryManager(Int32, Action(Exception))Initializes a new instance of the the RetryManager class.
Public methodRetryManager(Int32, TimeSpan)Initializes a new instance of the the RetryManager class.
Public methodRetryManager(Int32, TimeSpan, Action(Exception))Initializes a new instance of the the RetryManager class.
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInvoke(Action)Executes specified action with retries.
Public methodInvoke(T)(Action(T), T)Executes specified action with retries.
Public methodInvoke(T1, T2)(Action(T1, T2), T1, T2)Executes specified action with retries.
Public methodInvoke(T1, T2, T3)(Action(T1, T2, T3), T1, T2, T3)Executes specified action with retries.
Public methodInvoke(T1, T2, T3, T4)(Action(T1, T2, T3, T4), T1, T2, T3, T4)Executes specified action with retries.
Public methodInvokeFunc(TResult)(Func(TResult))Executes specified Func with retries.
Public methodInvokeFunc(T, TResult)(Func(T, TResult), T)Executes specified Func with retries.
Public methodInvokeFunc(T1, T2, TResult)(Func(T1, T2, TResult), T1, T2)Executes specified Func with retries.
Public methodInvokeFunc(T1, T2, T3, TResult)(Func(T1, T2, T3, TResult), T1, T2, T3)Executes specified Func with retries.
Public methodInvokeFunc(T1, T2, T3, T4, TResult)(Func(T1, T2, T3, T4, TResult), T1, T2, T3, T4)Executes specified Func with retries.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: