Retry logic for execution of a method
More...
|
static async Task< T > | Do< T > (Func< Task< T >> method, RetryOptions options=null) |
| Performs the method until success or retry limit reached More...
|
|
static async Task< T > | Do< T > (Func< T > method, RetryOptions options=null) |
| Performs the method until success or retry limit reached More...
|
|
static async Task< bool > | Do (Func< Task > method, RetryOptions options=null) |
| Performs the method until success or retry limit reached More...
|
|
static async Task< bool > | Do (Action method, RetryOptions options=null) |
| Performs the method until success or retry limit reached More...
|
|
Retry logic for execution of a method
◆ Do() [1/2]
static async Task<bool> Sphyrnidae.Common.RetryMethod.Retry.Do |
( |
Action |
method, |
|
|
RetryOptions |
options = null |
|
) |
| |
|
static |
Performs the method until success or retry limit reached
- Parameters
-
method | The method to execute in the retry loop |
options | Retry options to customize the retry logic (Optional, default = new RetryOptions()) |
- Returns
- true if succeeded, or false/throw exception (based on configuration)
◆ Do() [2/2]
static async Task<bool> Sphyrnidae.Common.RetryMethod.Retry.Do |
( |
Func< Task > |
method, |
|
|
RetryOptions |
options = null |
|
) |
| |
|
static |
Performs the method until success or retry limit reached
- Parameters
-
method | The method to execute in the retry loop |
options | Retry options to customize the retry logic (Optional, default = new RetryOptions()) |
- Returns
- true if succeeded, or false/throw exception (based on configuration)
◆ Do< T >() [1/2]
Performs the method until success or retry limit reached
- Template Parameters
-
- Parameters
-
method | The method to execute in the retry loop |
options | Retry options to customize the retry logic (Optional, default = new RetryOptions()) |
- Returns
- T, or default if not succeeded (or throws if so configured)
◆ Do< T >() [2/2]
Performs the method until success or retry limit reached
- Template Parameters
-
- Parameters
-
method | The method to execute in the retry loop |
options | Retry options to customize the retry logic (Optional, default = new RetryOptions()) |
- Returns
- T, or default if not succeeded (or throws if so configured)
The documentation for this class was generated from the following file:
- C:/Users/dougb/Desktop/Sphyrnidae/New/Common/Common/RetryMethod/Retry.cs