RetryPolicyExtensionsType
PackageFCQRS.Workflows
Changes to a retry policy, for C#. `Retry.none`, `Retry.times(n)` and `Retry.forever(deadline)`
give the starting policies.
Specification
Kind
Type
Members
5
Examples
0
RetryWhenSignature
RetryPolicyExtensions.RetryWhen(policy, shouldRetry)
WithAttemptTimeoutSignature
RetryPolicyExtensions.WithAttemptTimeout(policy, timeout)
WithDeadlineSignature
RetryPolicyExtensions.WithDeadline(policy, deadline)
WithMaxAttemptsSignature
RetryPolicyExtensions.WithMaxAttempts(policy, attempts)
WithScheduleSignature
RetryPolicyExtensions.WithSchedule(policy, schedule)
Summary
| Name | Signature | Synopsis |
|---|---|---|
| RetryWhen | RetryPolicyExtensions.RetryWhen(policy, shouldRetry) | Which exceptions are worth another attempt. |
| WithAttemptTimeout | RetryPolicyExtensions.WithAttemptTimeout(policy, timeout) | The time allowed for one attempt. |
| WithDeadline | RetryPolicyExtensions.WithDeadline(policy, deadline) | The time allowed for the whole step, from its stored start. |
| WithMaxAttempts | RetryPolicyExtensions.WithMaxAttempts(policy, attempts) | The most attempts to make. |
| WithSchedule | RetryPolicyExtensions.WithSchedule(policy, schedule) | The wait between attempts. |
Which exceptions are worth another attempt.
Parameters
| Name | Type | Description |
|---|---|---|
| policy | RetryPolicy | |
| shouldRetry | Func<exn, bool> |
Returns
RetryPolicy
The time allowed for one attempt. For a command step it is how long one send waits for its
event, in place of `akka.fcqrs.command-timeout`.
Parameters
| Name | Type | Description |
|---|---|---|
| policy | RetryPolicy | |
| timeout | TimeSpan |
Returns
RetryPolicy
The time allowed for the whole step, from its stored start.
Parameters
| Name | Type | Description |
|---|---|---|
| policy | RetryPolicy | |
| deadline | TimeSpan |
Returns
RetryPolicy
The most attempts to make.
Parameters
| Name | Type | Description |
|---|---|---|
| policy | RetryPolicy | |
| attempts | int |
Returns
RetryPolicy