RetryModule
PackageFCQRS.Workflows
Common retry policies.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| once | once attemptTimeout | One attempt, which fails when it has not finished within `attemptTimeout`. |
| times | times attempts attemptTimeout | At most `attempts` attempts, with backoff from one second to one minute. |
| forever | forever deadline | Retries with backoff until `deadline` has passed since the step was first reached. |
| command | command | The policy `send` uses: send again when no reply came in time, with backoff, for five minutes. |
One attempt, which fails when it has not finished within `attemptTimeout`.
Parameters
| Name | Type | Description |
|---|---|---|
| attemptTimeout | TimeSpan |
Returns
RetryPolicy
At most `attempts` attempts, with backoff from one second to one minute. Each attempt fails
when it has not finished within `attemptTimeout`.
Parameters
| Name | Type | Description |
|---|---|---|
| attempts | int | |
| attemptTimeout | TimeSpan |
Returns
RetryPolicy
Retries with backoff until `deadline` has passed since the step was first reached. The
deadline fails the step even when an attempt is still running.
Parameters
| Name | Type | Description |
|---|---|---|
| deadline | TimeSpan |
Returns
RetryPolicy