-
Couldn't load subscription status.
- Fork 6.1k
HTTP AutoClient NuGet package content #36970
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a couple small nits, but this is ready to go.
Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
b92368d to
95652fb
Compare
* Auto rest content * Added to the TOC * Fix warnings * Now the xref is better * Minor clean up * More updateS * Update docs/fundamentals/networking/http/http-autoclient.md Co-authored-by: Bill Wagner <wiwagn@microsoft.com> * Use primary ctor * Clean up * Major clean up and edit pass * Rename link to article * Apply suggestions from code review Co-authored-by: Bill Wagner <wiwagn@microsoft.com> * Snippets * Remove un-used usings * Remove incorrect alert * touch csproj * Adjust heading * Add note about experimental API --------- Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
|
Hi @IEvangelist what is the status of Microsoft.Extensions.Http.AutoClient it will still be shipped or it is discontinued, we are already using it in a production ready application and I really love it, but if it will be discontinued I will need to find alternative solutions. |
|
@joperezr FYI |
|
Hi @valentinmarinro, thanks for your question. We decided to not ship Microsoft.Extensions.AutoClient. You should consider using Refit library instead. The API surface is super similar so it should feel familiar and it should also be very straight forward to port your existing code. |
|
@joperezr thank you for the quick answer, any reasons why, it looked so beautiful and AOT compatible |
|
Main reason was the one shared above, which is when we had a closer look on Refit and reached out to the maintainers of it, it felt like its features were very closely-aligned with AutoClient, so it didn't make sense to introduce a new library when there was an existing one that would meet the same needs. In terms of the AOT-compatibility, we also discussed with the maintainers the possibility of helping Refit become AOT compatible by swapping their use of reflection for source-gen like AutoClient instead, and they seemed to be okay with us contributing that. |
Summary
Content for the
Microsoft.Extensions.Http.AutoClientNuGet package.Fixes #36947
Internal previews