Cuemon .NET Framework
RecoveryWaitTime Method

The current attempt.
Specifies the amount of time to wait for a transient fault to recover gracefully before trying a new attempt.
Syntax
'Declaration
 
Public Shared Function RecoveryWaitTime( _
   ByVal currentAttempt As Integer _
) As TimeSpan
public static TimeSpan RecoveryWaitTime( 
   int currentAttempt
)

Parameters

currentAttempt
The current attempt.

Return Value

A System.TimeSpan that defines the amount of time to wait for a transient fault to recover gracefully.
Remarks
Default implementation is currentAttempt + 2^ to a maximum of 5; eg. 1, 2, 4, 8, 16 to a total of 32 seconds.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TransientFaultUtility Class
TransientFaultUtility Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback