I have a .Net Framework 4.8 WinForms app which was initially developed over a decade ago before Tasks was a thing in .Net. Until today the app has never had to worry itself with using Tasks, but the day has finally come.
There is one dependency injection service that needs a new implementation. It needs to get data from a REST service so will be using the System.Net.Http.HttpClient with all of its Task-based methods.
How does one go about making calls into the System.Net.Http.HttpClient when it is not possible to add async to the calling class?