对长时间运行过程的建议 [英] Suggestion on long running process

查看:73
本文介绍了对长时间运行过程的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的要求是创建一个网站,任意数量的用户都可以登录并点击按钮。该按钮单击内的任务将是一个长时间运行的过程(可能需要数小时或数天才能完成任务)。用户可以从网站注销,偶尔可以登录查看任务的状态。在使用ASP.NET模拟Windows服务来运行预定作业 [ ^ ]文章。请给出一些建议。



谢谢

解决方案

好的,你说的有点像< b>异步任务。

首先查看 MSDN [ ^ ]

然后看到这个博客 [ ^ ]。



- KR

Hi,

My requirement is to create a website in which any number of user can login and click on a button. The task inside that button click will be a long running process (May take hours or days to finish the task). User can logout from the website and can login occasionally to check the status of the task.Is it good to use the idea in Simulate a Windows Service using ASP.NET to run scheduled jobs[^] article. Please give some suggestion on this.

Thanks

解决方案

Okay you're talking about somewhat like Asynchronous Task.
First look at on MSDN[^]
and then see this blog[^].

-KR


这篇关于对长时间运行过程的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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