MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

For HttpClient, recommend using HttpClientFactory #35467

Open IanKemp opened 5 years ago

IanKemp commented 5 years ago

As per https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

shashishailaj commented 5 years ago

@IanKemp Thank you for your feedback. We will investigate and update the thread further.

PramodValavala-MSFT commented 5 years ago

@IanKemp Thanks for the feedback! I believe this is definitely a better way to do it and with dependency injection introduced, we could inject it as well (and potentially the other clients mentioned in this doc as well).

We are assigning this issue to the content author for further review and to update the doc accordingly.

ggailey777 commented 5 years ago

@craigshoemaker can you take a look at this issue since you are documenting the DI capabilities of .NET Functions?

Thanks.