Last active
July 11, 2018 22:40
-
-
Save hnabbasi/8ff9e16c07be79f0fd1b117e10858e15 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
internal async Task<T> RetryInner<T>(Func<Task<T>> func, | |
int retryCount, | |
Func<Exception, int, Task> onRetry) | |
{ | |
return await Policy | |
.Handle<Exception>() | |
.RetryAsync(retryCount, onRetry) | |
.ExecuteAsync<T>(func); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment