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 |
Initializes a new retry handler that retries up to maxRetries times with a linear backoff starting at 100 ms. |
Methods
| Name | Value | Summary |
|---|---|---|
|
Execute |
Result |
Executes
operation, retrying on
T according
to the configured policy.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
|
NotNull |
T |
Throws
ArgumentNullException when
value is
null; otherwise returns the
value.
From
CommonExtensions
|