C#同步调用异步方法

https://www.cnblogs.com/taro/p/7285126.html

使用Wait()和GetAwaiter().GetResult()方法实现异步方法同步执行