RetryAction<T, Result> Class

Summary

Executes a function with automatic linear-backoff retries when a T exception is thrown.
Namespace
global
Base Types
  • object
graph BT Type-->Base0["object"] Type["RetryAction<T, Result>"] class Type type-node

Syntax

public class RetryAction<T, Result> where T : Exception

Type Parameters

Name Description
T
Result

Constructors

Name Summary
RetryAction(int) Initializes a new retry handler that retries up to maxRetries times with a linear backoff starting at 100 ms.

Methods

Name Value Summary
Execute(Func<Result>) Result
Executes operation, retrying on T according to the configured policy.

Extension Methods

Name Value Summary
NotNull<RetryAction<T, Result>>(string) T
Throws ArgumentNullException when value is null; otherwise returns the value.
GitHub