I used quote marks around \"right way\" because I\'m already well aware that the right way to use an asynchronous API is to simply let the asynchronous behavior propagate th
Try following-
var task = Task.Run(() => myHttpClient.GetAsync(someUrl));
task.Wait();
var response = task.Result;
Use it only when you cannot use async method.
This method is completely deadlock free as mentioned on msdn blog- https://blogs.msdn.microsoft.com/jpsanders/2017/08/28/asp-net-do-not-use-task-result-in-main-context/