Last active
July 26, 2018 16:32
-
-
Save hnabbasi/872e0cfc799487ef9c735ec8257e6b7a to your computer and use it in GitHub Desktop.
Polly MVVM
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
public interface INetworkService | |
{ | |
Task<T> Retry<T>(Func<Task<T>> func, int retryCount, Func<Exception, int, Task> onRetry); | |
Task<T> WaitAndRetry<T>(Func<Task<T>> func, Func<int, TimeSpan> sleepDurationProvider, int retryCount, | |
Func<Exception, TimeSpan, Task> onRetryAsync); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment