Mono .Net是否支持异步等待? [英] Mono .Net support for async await?

查看:118
本文介绍了Mono .Net是否支持异步等待?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在Linux上的Mono中是否支持使用异步等待关键字功能编写自托管的WebApi项目.

I wanted to know if writing a self hosted WebApi project using async await keyword features would be supported in Mono on Linux..

我发现了这一点: 在Mono网站的兼容性页面上:

I found this: on the Mono website on the compability page:

然后有一些文字说有限的ASP.NET 4.5异步堆栈.

所以...我很困惑... Mono 4.5支持或不支持什么异步/等待方式?

So... i'm confused... what async/await aspect is or isn't supported with Mono 4.5 ?

推荐答案

Mono很早以前就克隆了ASP.NET 2管道,以支持基于"System.Web"程序集的经典ASP.NET WebForms.由于Microsoft的最初设计,该模型是同步模型.

Mono cloned ASP.NET 2 pipeline a long time ago, to support the classic ASP.NET WebForms based on "System.Web" assembly. That model was a sync one due to Microsoft's initial design.

但是,后来Microsoft在.NET 4/4.5时间段内向管道(System.Web)添加了许多异步功能,这是Mono尚未完全克隆的新设计.这可能就是该段后面的意思.

However, later Microsoft added many async features to the pipeline (System.Web) during .NET 4/4.5 time frame, and that's a new design Mono does not yet fully clone. That's probably the meaning behind the paragraph.

我不认为Mono应当继续开发"System.Web",因为即使Microsoft不久前也放弃了OWIN的支持,而现在放弃了ASP.NET 5/DNX.

I don't think Mono should move ahead with "System.Web" as even Microsoft gives it up in favor of OWIN a while ago, and now ASP.NET 5/DNX.

更新:

请立即切换到ASP.NET Core,因为它是跨平台Web应用程序领域的最佳选择.

Please switch to ASP.NET Core today, as it is simply the best in this field for cross platform web applications.

这篇关于Mono .Net是否支持异步等待?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆