Implement IHttpClientFactory in .NET Framework apart from .NET Core?
04:23 23 Jul 2018

In .NET Core, we can use IHttpClientFactory to inject and use during runtime. As a developer I no need to worry about the dependency resolution. I need to just specify AddHttpClient() in service collection.

Likewise, how can I use IHttpClientFactory in WPF application, .NET Framework 4.6.1? As there is no Service collection available for WPF application, not getting how to resolve the dependency.

c#-4.0 asp.net-core-2.0