2.19.11
Improvements
- Introduce
SlopeFactor
forLinearRetryDelay
. - Slightly improved performance for
RetryPolicy
by removing the overhead of using theint
tryCount
argument in theDefaultRetryProcessor.DelayIfNeedAsync(Async)
methods. - Introduce
PolicyCollection.WithRetry
,PolicyCollection.WithInfiniteRetry
methods withRetryDelay
parameter. - Introduce
PolicyDelegateCollection.WithRetry
,PolicyDelegateCollection.WithInfiniteRetry
methods withRetryDelay
parameter. - Introduce
PolicyDelegateCollection<T>.WithRetry
,PolicyDelegateCollection<T>.WithInfiniteRetry
methods withRetryDelay
parameter. - Introduce
RetryPolicy.SetPolicyResultFailedIf
method overloads withAction<PolicyResult<T>>
handler parameter forRetryPolicy
,SimplePolicy
andFallback
policies.
Small changes
- Move null guards before getting a fallback delegate in
FallbackPolicyBase
. - Remove deprecated suppression for
PolicyResultHandlingException
.
Docs changes
- Add doc comments to the public members of the
PolicyDelegate
andPolicyDelegate<T>
classes. - Add doc comments to the public members of the
PolicyDelegateResult
andPolicyDelegateResult<T>
classes. - Add doc comments to the public members of the
PolicyResult
andPolicyResult<T>
classes, and to thePolicyResultFailedReason
enum. - Update 'Calling Func and Action delegates in a resilient manner' README Chapter.
- Update 'RetryPolicy' README Chapter.