I am building a c# forms application that is calling a .net core API
Code in the forms application is as follows
static HttpClient client = new HttpClient(