Cuemon .NET Framework
ExecuteAction<T>(Int32,Doer<Exception,Boolean>,Act<T>,T) Method

The type of the parameter of the delegate faultSensitiveMethod.
The amount of retry attempts for transient faults.
The function delegate that returns true if the failed operations contains clues that would suggest a transient fault; otherwise, false.
The fault sensitive delegate that is invoked until an operation is successful, the amount of retry attempts has been reached, or a failed operation is not considered related to transient fault condition.
The parameter of the delegate faultSensitiveMethod.
Repetitively executes the specified faultSensitiveMethod until the operation is successful, the amount of retry attempts has been reached, or a failed operation is not considered related to transient fault condition.
Syntax
'Declaration
 
Public Overloads Shared Sub ExecuteAction(Of T)( _
   ByVal retryAttempts As Integer, _
   ByVal isTransientFault As Cuemon.Doer(Of Exception,Boolean), _
   ByVal faultSensitiveMethod As Cuemon.Act(Of T), _
   ByVal arg As T _
) 
public static void ExecuteAction<T>( 
   int retryAttempts,
   Cuemon.Doer<Exception,bool> isTransientFault,
   Cuemon.Act<T> faultSensitiveMethod,
   T arg
)

Parameters

retryAttempts
The amount of retry attempts for transient faults.
isTransientFault
The function delegate that returns true if the failed operations contains clues that would suggest a transient fault; otherwise, false.
faultSensitiveMethod
The fault sensitive delegate that is invoked until an operation is successful, the amount of retry attempts has been reached, or a failed operation is not considered related to transient fault condition.
arg
The parameter of the delegate faultSensitiveMethod.

Type Parameters

T
The type of the parameter of the delegate faultSensitiveMethod.
Remarks
Defaults to using the RecoveryWaitTime function implementation for specifying the amount of time to wait for a transient fault to recover gracefully before trying a new attempt.
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
Overload List

 

 


| 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