I have ASP.NET Core 2.1 project which uses a class library built on .Net Core 2.1. In .Net Core 2.1 class library i need to make several REST class,for which i am using HttpClient class.
I want to leverage the benefits of HttpClientFactory for creating and using HttpClient instances.
How can i use HttpClientFactory in .Net Core 2.1 class library.