Add support for System.Net.Http.Json GetFromJsonAsync
methods
#1411
Closed
eduherminio
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Have you looked into using HttpClientFactory with Polly? That plugs Polly v7 into any HTTP request, not just ones using the method for getting JSON. There will be further new APIs for integrating Polly v8 into HTTP pipelines coming from the .NET team via the https://github.com/dotnet/extensions repository as part of the .NET 8 release later this year. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be awesome to be able to wrap with Polly this call:
Currently I haven't found a better way stop using
GetFromJsonAsync
extension method:The simplest solution I could thing of is adding overrides to all
GetFromJsonAsync
methods found here with aPolicyWrap
parameter?Although we would be executing the serialization part inside of the
PolicyWrap.Execute(...)
method, not sure how dumb is that.,Sample:
Beta Was this translation helpful? Give feedback.
All reactions