Cuemon .NET Framework
ExecuteFunction<T1,T2,T3,T4,T5,TResult>(Doer<Exception,Boolean>,Doer<T1,T2,T3,T4,T5,TResult>,T1,T2,T3,T4,T5) Method

The type of the first parameter of the function delegate faultSensitiveMethod.
The type of the second parameter of the function delegate faultSensitiveMethod.
The type of the third parameter of the function delegate faultSensitiveMethod.
The type of the fourth parameter of the function delegate faultSensitiveMethod.
The type of the fifth parameter of the function delegate faultSensitiveMethod.
The type of the return value of the function delegate faultSensitiveMethod.
The function delegate that returns true if the failed operations contains clues that would suggest a transient fault; otherwise, false.
The fault sensitive function 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 first parameter of the function delegate faultSensitiveMethod.
The second parameter of the function delegate faultSensitiveMethod.
The third parameter of the function delegate faultSensitiveMethod.
The fourth parameter of the function delegate faultSensitiveMethod.
The fifth parameter of the function 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 Function ExecuteFunction
    (Of T1,T2,T3,T4,T5,TResult)( _
   ByVal isTransientFault As Cuemon.Doer(Of Exception,Boolean), _
   ByVal faultSensitiveMethod As Cuemon.Doer(Of T1,T2,T3,T4,T5,TResult), _
   ByVal arg1 As T1, _
   ByVal arg2 As T2, _
   ByVal arg3 As T3, _
   ByVal arg4 As T4, _
   ByVal arg5 As T5 _
) As TResult
public static TResult ExecuteFunction<T1,T2,T3,T4,T5,TResult>( 
   Cuemon.Doer<Exception,bool> isTransientFault,
   Cuemon.Doer<T1,T2,T3,T4,T5,TResult> faultSensitiveMethod,
   T1 arg1,
   T2 arg2,
   T3 arg3,
   T4 arg4,
   T5 arg5
)

Parameters

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 function 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.
arg1
The first parameter of the function delegate faultSensitiveMethod.
arg2
The second parameter of the function delegate faultSensitiveMethod.
arg3
The third parameter of the function delegate faultSensitiveMethod.
arg4
The fourth parameter of the function delegate faultSensitiveMethod.
arg5
The fifth parameter of the function delegate faultSensitiveMethod.

Type Parameters

T1
The type of the first parameter of the function delegate faultSensitiveMethod.
T2
The type of the second parameter of the function delegate faultSensitiveMethod.
T3
The type of the third parameter of the function delegate faultSensitiveMethod.
T4
The type of the fourth parameter of the function delegate faultSensitiveMethod.
T5
The type of the fifth parameter of the function delegate faultSensitiveMethod.
TResult
The type of the return value of the function delegate faultSensitiveMethod.

Return Value

The result from the faultSensitiveMethod.
Remarks
Defaults to using DefaultRetryAttempts for specifying the amount of retry attempts and 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