Using HttpClientFactory in ASP.NET Core Applications

added by DotNetKicks
3/3/2021 5:22:15 PM

613 Views

Up until now, we've been using HttpClient directly in our services. In every service, we've created an HttpClient instance and all the required configurations. That lead to repeating code in all of our service classes. Well, in this article we are going to learn how to prevent that by using HttpClientFactory.


0 comments