Configuring HttpClient and IHttpClientFactory in Autofac using autofac.json
I’m working on an ASP.NET project using Autofac for dependency injection, and I have a service that relies on HttpClient. I’ve registered IHttpClientFactory in my Startup.cs and use it to create HttpClient instances for various purposes. I want to move the configuration of HttpClient and IHttpClientFactory to autofac.json to centralize the registration and to keep … Read more