Scheduler for ASP.NET?

*爱你&永不变心* 提交于 2019-12-19 04:15:23

问题


I want to run some of my apps code every night in some sort of task or scheduler. Is there any build in functionality in the framework? If not, whats an easy 3rd party framework to get scheduling?

Thanks


回答1:


You can create a console application and run it as a scheduled task. Alternatively you could look at using Quartz.Net which is a port of the Java Quartz, a framework for scheduling jobs.

Either way your finished product will likely be a console application that is scheduled to run with scheduled tasks, or a class library as a Windows Service. ASP.NET its self won't do the scheduling.




回答2:


If you can, you could use IIS 7.5 Application Warm-Up Module : http://blogs.iis.net/thomad/archive/2009/10/14/now-available-the-iis-7-5-application-warm-up-module.aspx



来源:https://stackoverflow.com/questions/5577729/scheduler-for-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!