Polly.Contrib.WaitAndRetry
                                
                                
                                
                                    Polly.Contrib.WaitAndRetry copied to clipboard
                            
                            
                            
                        Polly.Contrib.WaitAndRetry is an extension library for Polly containing helper methods for a variety of wait-and-retry strategies.
**Summary**: Currently when using Discord Bots sometimes the sockets get into an invalid state, however it is most of the time frequently in about every few hours. **Expected behavior**: For...
### The example is not compatible with Polly 7 ### Confirm the following - [x] I have merged the latest changes from the dev vX.Y branch - [x] I have...
I am trying to implement the policy with DecorrelatedJitterBackoffV2 method: private static void SetPolicies() { var delay = Backoff.DecorrelatedJitterBackoffV2(medianFirstRetryDelay: TimeSpan.FromSeconds(1), retryCount: 5); _policy = Policy.Handle().WaitAndRetryForeverAsync(retryAttempt => TimeSpan.FromMilliseconds(Math.Pow(2, retryAttempt)), (exception, timespan,...
**Polly.Contrib binaries target Framework 4.7.2, but this excludes assemblies Framework 4.7.** **Solution: Add Framework 4.7 to the list of targets**:
### Polly.Contrib does not compile for us poor souls still on Framework 4.7 ### Add Framework 4.7 to list of targets ### Confirm the following - [X] I have merged...
**Summary**: Given that DecorrelatedJitterBackoffV2 uses takes the median of the inital delay, I had expected that the sum of all delay times would sometimes be higher than the sum of...
In the readme here: https://github.com/Polly-Contrib/Polly.Contrib.WaitAndRetry/blob/master/README.md?plain=1 I found this: `var delay = Backoff.ExponentialBackoff(TimeSpan.FromMilliseconds(100), retryCount: 5, factor: 4);` It goes on to say: _The upper for this retry with a growth factor...
We want to log retries and 'giving up' with its own message. I now implemented this with a condition in the `Retry`: `if (attempt < MaxAttempts) {normal behavior} else {custom...
**Is your feature request related to a specific problem? Or an existing feature? Please describe.** Similar to existing feature. **Describe your proposed or preferred solution**: Expose a new backoff strategy,...