question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Proposal: Add Retry Policies

See original GitHub issue

Here 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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:31 (15 by maintainers)

github_iconTop GitHub Comments

10reactions
drmcclellandcommented, Apr 17, 2018

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.

7reactions
shatlcommented, Aug 20, 2018

+1 for using Polly with HttpClientFactory.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found