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:  DMLibrary
Assembly:  DMLibrary (in DMLibrary.dll) Version: 1.0.6340.17420

Syntax
public static T Do<T>(
	RetryParameters parameters,
	Func<T> action,
	Action beforeRetry = null
)

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: T
return value from action if it doesn't fail and throws an aggregate exception if it does ultimately fail
See Also