Scheduler for ASP.NET?

2019-02-15 14:37发布

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

2条回答
Root(大扎)
2楼-- · 2019-02-15 15:01
▲ chillily
3楼-- · 2019-02-15 15:05

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.

查看更多
登录 后发表回答