✅ DI with HttpClient / HttpClientFactory
The docs show the basic usage of HttpClientFactory with DI as follows:
I wonder why not do something like this instead:
like why work with local variable and invoke CreateClient() multiple times?
I wonder why not do something like this instead:
like why work with local variable and invoke CreateClient() multiple times?