Last active
September 2, 2019 20:57
-
-
Save angelobelchior/91f69cc1af08f5a66961b3424f192e2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private AsyncRetryPolicy CreatePolicy(RetryPolicyConfiguration retryPolicyConfiguration) | |
=> Policy.Handle<Exception>(e => true) | |
.WaitAndRetryAsync(retryCount: retryPolicyConfiguration.RetryCount, | |
retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryPolicyConfiguration.RetryAttemptFactor)) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment