When generating c# client code the created code uses a few not recommend solutions for writing c# apps.
First https://docs.microsoft.com/en-us/azure/architecture/antipatterns/improper-instantiation/
There should be a way of controlling the HttpClient creation like a virtual method GetHttpClient.
Also serialization of json is somewhat unoptimized https://www.newtonsoft.com/json/help/html/Performance.htm
You should also add a method for serialization and deserialization.
Good stuff thanks for sharing!
There are already many ways to control how HttpClient is used (e.g. InjectHttpClient, DisposeHttpClient, UseHttpClientCreationMethod, HttpClientType). Improving JSON serialization would be great...
@RSuter Thanks I don't know how I missed the setting sorry about that.
Closing as there are already enough settings to completely control that and also use HttpClientFactory
Most helpful comment
See also https://github.com/aspnet/HttpClientFactory