使用.NET 4.0任务在ASP.NET

编程入门 行业动态 更新时间:2024-10-23 04:39:18
本文介绍了使用.NET 4.0任务在ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否有任何警告或短的缺憾,以使用新的任务API中的 System.Threading.Task ASP.NET中的IIS下主办?

Are there any caveats or short comings to using the new Task API in System.Threading.Task in ASP.NET hosted under IIS?

我知道之前,.NET 4.0的工作与任何线程池的行为的IIS里面总是建议要避免的。

I know prior to .NET 4.0 working with any of the ThreadPool actions inside of IIS was always recommended to be avoided.

推荐答案

什么注意事项,使用线程池与IIS依然有效使用 System.Threading.Task ,作为任务API是抽象的只是一个附加层以上的System.Threading 。

Any caveats to using ThreadPool with IIS would still be valid using System.Threading.Task, as the Task API is just an additional layer of abstraction over System.Threading.

有关在后台长时间运行的任务,我用的是线程池里面的Windows服务。这IIS以外的保持它。

For long-running tasks in the background, I use a ThreadPool inside a Windows Service. This keeps it outside of IIS.

更多推荐

使用.NET 4.0任务在ASP.NET

本文发布于:2023-11-10 09:41:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1575031.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:NET   ASP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!