Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Polly with this library? #617

Open
endeffects opened this issue Jan 17, 2024 · 2 comments
Open

How to use Polly with this library? #617

endeffects opened this issue Jan 17, 2024 · 2 comments

Comments

@endeffects
Copy link

endeffects commented Jan 17, 2024

I'd like to use polly to implement retries for failed requests that return a Too Many Requests status code.
Is there any sample available or base class where i can access the used http client?

Just to be sure, i'm not talking about wrapping the graphQl client calls, i'd like to know if there is
a proper way to inject polly into the existing pipeline.

@richardaubin
Copy link

Use DI and inject an httpclient into the graphqlhttpclient. You can configure your httpclient with your polly requirements.

@olops2000
Copy link

I also have this requirement and the solution is not obvious to me. Sample code anyone? Ta.

I am generally struggling with this library with lack of example code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants