Jul 02, 2019 11:37 AM|mgebhard|LINK
This thread is very similar to your others. Rather than solving the problem you are throwing design patterns and code at a basic logic problem that does not need all the extra layers and complexity. At the same time, you are not using the patterns and
I recommend now, as I did in your other threads, to take advantage of the IoC container you selected for this project; Unity. It makes little sense to craft a custom solution when you can use Unity. Either configure HttpClient as a Singleton or build
a factory. You will need to study the Unity documentation or do a Google search for tips and code.
If you want to roll your own and manage scope yourself, then look into the Singleton pattern. Still I recommend using the IoC container you selected for this project.