处理async void 方法中无法捕捉异常信息

利用 NuGet库 Nito.AsyncEx 中的 AsyncContext类。

添加NuGet类库,使用AsyncContext

AsyncContext.Run(Action action);

原文地址:https://www.cnblogs.com/zh7791/p/7845390.html