I am trying to convert some code from net core api to class library.
I am stuck how to use HttpClientfactory. Normally the httpclientfactory can be configured in program.cs or Startup like
services.AddHttpClient("abc", xxx config).
How to do configurations in class library for Httpclientfactory.
You could try as below:
you could get the instance of httpclinetfactory through the interface