RetryManager Constructor (Int32, Action<Exception>)
Initializes a new instance of the the RetryManager class.
Namespace: Microsoft.TeamFoundation.Common
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Sub New ( _
retryCount As Integer, _
onException As Action(Of Exception) _
)
public RetryManager(
int retryCount,
Action<Exception> onException
)
public:
RetryManager(
int retryCount,
Action<Exception^>^ onException
)
new :
retryCount:int *
onException:Action<Exception> -> RetryManager
public function RetryManager(
retryCount : int,
onException : Action<Exception>
)
Parameters
retryCount
Type: System.Int32The number of retries.
onException
Type: System.Action<Exception>A callback method that will be called if exception is thrown.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.