I am building an app in 2SXC for DNN using Razor templates. I need to pull some data from a couple external APIs, but have concerns over socket exhaustion using many HttpClient requests across different pages.
I have looked into using dependency injection and creating Typed Clients using IHttpClientFactory, but the current implementation in DNN doesn't appear to support this.
Does anyone have any suggestions on how to create and reuse HttpClient objects using razor modules that is thread safe?
Thanks for any guidance you can provide!