❔ CookieContainer and IHttpClientFactory
Hello, I'm currently migrating some old code base (.Net Core 3.0), and the code itself has a bunch of code smells, so I'm trying to improve it a bit (a bunch).
It was a big Web Service and I'm also splitting it into smaller Web Services.
I'm looking to take advantage of the
The old code did something like this in one of the Controllers:
It was a big Web Service and I'm also splitting it into smaller Web Services.
I'm looking to take advantage of the
IHtppClientFactory. I understand the concept, it reuses a HttpClient object for the connections, but I have a issue.The old code did something like this in one of the Controllers: