阅读背景:

从非异步代码调用异步方法

来源:互联网 

I'm in the process of updating a library that has an API surface that was built in .NET 3.5. As a result, all methods are synchronous. I can't change the API (i.e., convert return values to Task) because that would require that all callers change. So I'm left with how to best call async methods in a synchronous way. This is in the context of ASP.NET 4, ASP.NET Core, and .NET/.NET Core console applications.I'm in the process of updating a library that h




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: