Times Method (IRetry)
- Last UpdatedApr 08, 2026
- 1 minute read
Retry given action for certain number of times (uses defaults for number of retries and interval if not supplied).
void Times(
Action action,
Nullable<int> timesToRetry,
Nullable<int> delayBeforeRetry,
Action<Exception> iterationFailure,
Action<AggregateException> completeFailure
)
void Times(
Action^ action,
Nullable<int> timesToRetry,
Nullable<int> delayBeforeRetry,
Action<Exception^>^ iterationFailure,
Action<AggregateException^>^ completeFailure
)
Parameters
- action
- The action.
- timesToRetry
- Number of times to retry, default is used from registry if not supplied.
- delayBeforeRetry
- Interval between retries, default is used from registry if not supplied.
- iterationFailure
- The action when an attempt fails.
- completeFailure
- The action when all attempts failed.