Feature Proposal: Add Retry Policies
See original GitHub issueHere is what I propose:
public interface IApiClient
{
[Retry(typeof(ExponentialRetry))]
Task UpdateAsync(int num);
[Retry(typeof(LinearRetry))]
Task AddAsync(int num);
[Retry(typeof(NoRetry))] // <- can be skipped
Task<int> GetAll();
}
What you mind about this ?
P.S. Thank you for amazing library. P.S. 2 If you are ok with this idea, I would like to contribute it.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:31 (15 by maintainers)
Top Results From Across the Web
Azure Functions error handling and retry guidance
Learn how to handle errors and retry events in Azure Functions, with links to specific binding errors, including information on retry ...
Read more >Associate a Retry Policy with an Orchestration Item Definition
Click in the Retry Policy field, type the name of the retry policy that you want to associate with this item, then click...
Read more >Retry policy
Automatically retry failed requests when a step encounters an intermittent issue such as a network failure or request rate limit.
Read more >Retry Policy Recommendations
If an error returns, the mechanism makes sure that the application makes another attempt to retrieve the relevant information. Below you can find...
Read more >Enable event-driven function retries
This document describes how to enable retrying for event-driven functions. Automatic retrying is not available for HTTP functions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Polly (https://github.com/App-vNext/Polly) is a really great library with patterns like Retry & Circuit Breaker that would be a good combination to use with RestEase.
+1 for using Polly with HttpClientFactory.