extensions: Update AddTransientHttpErrorPolicy once Polly v7 is released
I’m not sure if you are already aware of this, but Polly v7 will distinguish between RetryPolicy and AsyncRetryPolicy. Since all methods on the HttpClient are async, it would make sense if AddTransientHttpErrorPolicy only accepted AsyncPolicy (note: not IAsyncPolicy since the sync version of RetryPolicy also implements that interface for some weird reason).
https://github.com/App-vNext/Polly/wiki/Polly-v7-breaking-changes
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (8 by maintainers)
I’ll catch up with @glennc and discuss with him. I can’t think of a reason why we wouldn’t do this. We want users to get the best version of things.
This is done!