Trying to call Async method synchronously. It waits on Task.Result forever [duplicate]
问题 This question already has answers here : Synchronously waiting for an async operation, and why does Wait() freeze the program here (4 answers) Closed 5 years ago . So I'm writing an application in which I want to expose a series of methods with both synchronous and asynchronous equivalents. To do this, I figured the easiest approach was to write the logic in the asnyc method, and write synchronous methods as wrappers around the async methods, waiting synchronously for them to deliver their