-
Notifications
You must be signed in to change notification settings - Fork 218
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
Some thoughts on CallWebApiForUserAsync2<TInput, TOutput> #503
Comments
@NikolaosWakem thanks for your feedback. The idea behind |
All the example code seems to return 200 and the object e.g. OK(Todo) which isn't how a lot of apis work. Will look out for further updates Thanks! |
@NikolaosWakem going to reopen, as, based on your analysis, looks like we a bug, and/or overlooked an important scenario. |
Thanks for your suggestion, @NikolaosWakem, and for being an early adopter. |
@NikolaosWakem I have a PR w/your code suggestions, if you want to take a look. |
Thanks for getting back to me... I just use the following...
|
It would also be helpful to be able to set up |
@rollandjb : we were advised against doing it by the ASP.NET Core team (HttpClient is pooled). |
@jmprieur : I am no expert, but according to .NET microservices - Architecture e-book
Of course, The document also encourages the use of To be able to do this, though, one needs access to the In a production app, one would most likely write a dedicated typed client in any respect. However, providing a way to configure and add handlers to Maybe an overload of What do you think? |
Included in 0.4.0-preview release. we have another issue, above, tracking more improvements here. |
@jennyf19 : I am not able to find out how to send request headers while using get requests on iDownStreamWebAPI. I recently got an error while calling MS graph api to add "ConsistencyLevel = eventual" header. Many Thanks |
Thanks @parwejp these are fair points. |
I have switched some existing code to use IDownstreamWebApi which is great..
In the end I i knocked together the following so the app could access an existing API
I imagine IDownstreamWebApi might be still a work in progress?.. be great to hear how best to utilize it.
The text was updated successfully, but these errors were encountered: