|
PeanutButter
|
Retries operations up to a specific number of times. More...
Static Public Member Functions | |
| static MaxAttemptsRetryContext | Max (int maxAttempts) |
| Set the max number of runs to allow. | |
| static TimeBasedRetryContext | Until (DateTime timeout) |
| Continues to retry the provided operation until the given timeout. | |
| static TimeBasedRetryContext | Until (TimeSpan maxRunTime) |
| Continues to retry the provided operation until the given timeout. | |
| static void | InstallDefaultBackoffStrategy (IBackoffStrategy backoffStrategy) |
| installs a default backoff strategy to use other than the DefaultBackoffStrategy of PeanutButter.Utils so you don't have to specify the strategy every time | |
| static void | InstallDefaultBackoffStrategy (Func< IBackoffStrategy > factory) |
| installs a factory for the default backoff strategy to use other than the DefaultBackoffStrategy of PeanutButter.Utils so you don't have to specify the strategy every time | |
| static void | ForgetDefaultBackoffStrategy () |
| Corollary to InstallDefaultBackoffStrategy. | |
Retries operations up to a specific number of times.
|
static |
Corollary to InstallDefaultBackoffStrategy.
|
static |
installs a factory for the default backoff strategy to use other than the DefaultBackoffStrategy of PeanutButter.Utils so you don't have to specify the strategy every time
| factory |
|
static |
installs a default backoff strategy to use other than the DefaultBackoffStrategy of PeanutButter.Utils so you don't have to specify the strategy every time
| backoffStrategy |
|
static |
Set the max number of runs to allow.
| maxAttempts |
|
static |
Continues to retry the provided operation until the given timeout.
| timeout |
|
static |
Continues to retry the provided operation until the given timeout.
| maxRunTime |