RetryDoT Method (RetryParameters, FuncT, Action)
|
Alterian Email Manager 6.2.3 SDK Help File
Executes the action until either it succeeds or it reaches the max number of retries
Namespace:
DMLibraryAssembly:
DMLibrary (in DMLibrary.dll) Version: 1.0.6340.17420
Syntaxpublic static T Do<T>(
RetryParameters parameters,
Func<T> action,
Action beforeRetry = null
)
Public Shared Function Do(Of T) (
parameters As RetryParameters,
action As Func(Of T),
Optional beforeRetry As Action = Nothing
) As T
public:
generic<typename T>
static T Do(
RetryParameters^ parameters,
Func<T>^ action,
Action^ beforeRetry = nullptr
)
static member Do :
parameters : RetryParameters *
action : Func<'T> *
?beforeRetry : Action
(* Defaults:
let _beforeRetry = defaultArg beforeRetry null
*)
-> 'T
JavaScript does not support generic types or methods.
Parameters
- parameters
- Type: DMLibraryRetryParameters
retry pattern configuration settings - action
- Type: SystemFuncT
function that might fail to be retried - beforeRetry (Optional)
- Type: SystemAction
optional function to call after a failed attempt but before retry
Type Parameters
- T
- type of return value
Return Value
Type:
Treturn value from action if it doesn't fail and throws an aggregate exception if it does ultimately fail
See Also