RetryModule

PackageFCQRS.Workflows
Common retry policies.

Summary

NameSignatureSynopsis
onceonce attemptTimeoutOne attempt, which fails when it has not finished within `attemptTimeout`.
timestimes attempts attemptTimeoutAt most `attempts` attempts, with backoff from one second to one minute.
foreverforever deadlineRetries with backoff until `deadline` has passed since the step was first reached.
commandcommand The policy `send` uses: send again when no reply came in time, with backoff, for five minutes.

once

once attemptTimeout
Member
One attempt, which fails when it has not finished within `attemptTimeout`.

Parameters

NameTypeDescription
attemptTimeoutTimeSpan

Returns

RetryPolicy

times

times attempts attemptTimeout
Member
At most `attempts` attempts, with backoff from one second to one minute. Each attempt fails when it has not finished within `attemptTimeout`.

Parameters

NameTypeDescription
attemptsint
attemptTimeoutTimeSpan

Returns

RetryPolicy

forever

forever deadline
Member
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

NameTypeDescription
deadlineTimeSpan

Returns

RetryPolicy

command

command
Member
The policy `send` uses: send again when no reply came in time, with backoff, for five minutes.

Returns

RetryPolicy