2.19.0
Improvements
- Add the
RetryDelay
class and its subclasses(ConstantRetryDelay
,LinearRetryDelay
,ExponentialRetryDelay
). - Change
RetryPolicy
ctor signature to accept theRetryDelay
parameter. - Add the
RetryDelay
parameter to theRetryPolicy.InfiniteRetries
method overloads. - Modify
RetryPolicy.Handle(Async)<T>
methods to use theRetryDelay
. - Add
DefaultRetryProcessor.Retry
method overloads andRetryInfinite
method to handleAction
withRetryDelay
parameter. - Add
DefaultRetryProcessor.Retry<T>
method overloads andRetryInfinite<T>
method to handleFunc<T>
withRetryDelay
parameter. - Add
DefaultRetryProcessor.RetryAsync
method overloads andRetryInfiniteAsync
method to handleFunc<CancellationToken, Task>
withRetryDelay
parameter. - Add
DefaultRetryProcessor.RetryAsync<T>
method overloads andRetryInfiniteAsync<T>
method to handleFunc<CancellationToken, Task<T>>
withRetryDelay
parameter. - Add internal
DelayProvider
class. - Refactoring to use the
DelayProvider
class in theDelayErrorProcessor
class. - Introduce
RetryProcessingErrorInfo
class, addProcessingErrorInfo.CurrentContext
property, deprecateProcessingErrorInfo.CurrentRetryCount
property.
Small changes
- DRY refactoring and new tests for
RetryPolicy.WithWait
method overloads.
Docs changes
- Add doc comments to
IRetryProcessor
class. - Add doc comments to
RetryCountInfoOptions
class andRetryCountInfo
struct. - Update 'RetryPolicy' README Chapter.
- Update 'TryCatch' README Chapter.