DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Adding Auto-Retries to a C# API Client
Roger Jin
Roger Jin

Posted on

Adding Auto-Retries to a C# API Client

Top comments (3)

Collapse
 
meebey profile image
Mirco Bauer

There is a small bug in the last line in last code block:

return new AggregateException(...)

Should be:

throw new AggregateException(...)

Collapse
 
grobert profile image
Gabriel Robert

Do you know the existence of Polly? It implements this pattern out of the box.

Collapse
 
rogerjin12 profile image
Roger Jin

Wow, no I didn't! This is great.

DEV

Thank you.

Β 
Thanks for visiting DEV, we’ve worked really hard to cultivate this great community and would love to have you join us. If you’d like to create an account, you can sign up here.