计划在asp.net中运行每日@ 10PM的方法 [英] Schedule to run a method Daily @ 10PM in asp.net

查看:99
本文介绍了计划在asp.net中运行每日@ 10PM的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我可以安排运行方法Daily @ 10PM。哪个(应用程序)托管在IIS上。





提前致谢。

Hi all,

Ho can I Schedule to run a method Daily @ 10PM. which(Application) is hosted on IIS.


Thanks in advance.

推荐答案

Asp.net不适用于此类任务。您最好使用Windows计划任务。创建执行所需任务的控制台应用程序,并在给定时间每天使用Windows计划任务计划。

获取更多信息

如何在c#.net每天的特定时间发起一次行动 [< a href =http://www.codeproject.com/Questions/445523/How-initiate-an-action-at-a-particular-time-everytarget =_ blanktitle =New Window> ^ ]



您可以借助Timers或Quartz.NET等库来安排ASP.NET任务,检查 http://stackoverflow.com/questions/542804/best-way-to-run-scheduled-tasks [<一个href =http://stackoverflow.com/questions/542804/best-way-to-run-scheduled-taskstarget =_ blanktitle =New Window> ^ ]
Asp.net is not designed for this type of Tasks. You better use Windows Scheduled Task for this. Create console app which execute the task you want and Schedule that using Windows Scheduled Task on every day at given time.
for more information
How initiate an action at a particular time every day in c#.net[^]

You can schedule task with ASP.NET with help of Timers or libraries like Quartz.NET, check http://stackoverflow.com/questions/542804/best-way-to-run-scheduled-tasks[^]


如果服务器允许您托管Windows服务,那么构建一个将运行的服务这个方法每天10点。
If you server allows you to host a windows service, then build one that will run this method at 10 daily.


这篇关于计划在asp.net中运行每日@ 10PM的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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