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

NameSignatureSynopsis
RetryWhenRetryPolicyExtensions.RetryWhen(policy, shouldRetry)Which exceptions are worth another attempt.
WithAttemptTimeoutRetryPolicyExtensions.WithAttemptTimeout(policy, timeout)The time allowed for one attempt.
WithDeadlineRetryPolicyExtensions.WithDeadline(policy, deadline)The time allowed for the whole step, from its stored start.
WithMaxAttemptsRetryPolicyExtensions.WithMaxAttempts(policy, attempts)The most attempts to make.
WithScheduleRetryPolicyExtensions.WithSchedule(policy, schedule)The wait between attempts.

RetryWhen

RetryPolicyExtensions.RetryWhen(policy, shouldRetry)
Member
Which exceptions are worth another attempt.

Parameters

NameTypeDescription
policyRetryPolicy
shouldRetryFunc<exn, bool>

Returns

RetryPolicy

WithAttemptTimeout

RetryPolicyExtensions.WithAttemptTimeout(policy, timeout)
Member
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

NameTypeDescription
policyRetryPolicy
timeoutTimeSpan

Returns

RetryPolicy

WithDeadline

RetryPolicyExtensions.WithDeadline(policy, deadline)
Member
The time allowed for the whole step, from its stored start.

Parameters

NameTypeDescription
policyRetryPolicy
deadlineTimeSpan

Returns

RetryPolicy

WithMaxAttempts

RetryPolicyExtensions.WithMaxAttempts(policy, attempts)
Member
The most attempts to make.

Parameters

NameTypeDescription
policyRetryPolicy
attemptsint

Returns

RetryPolicy

WithSchedule

RetryPolicyExtensions.WithSchedule(policy, schedule)
Member
The wait between attempts.

Parameters

NameTypeDescription
policyRetryPolicy
scheduleRetrySchedule

Returns

RetryPolicy