What is the equivalent to CRON jobs in ASP.NET? - C#

て烟熏妆下的殇ゞ 提交于 2019-11-28 07:16:34

Try Quartz.NET. it's a decent .NET scheduler which supports CRON expressions, CRON triggers and various other means and methods to schedule tasks to be performed at certain times / intervals.

It even includes a basic Quartz.NET server (Windows Application) that might fit your needs.

Edit:

If you can't run applications or windows services within your shared hosting then perhaps something like "Easy Background Tasks in ASP.NET" will do you? It simulates a Windows Service using HttpRuntime.Cache and removes the need for any external dependancies.

This is absolutely a hack, but you can simulate a cron service using ASP.NET callbacks. Here is an example of how to do it.

nCron is a .Net implementation of CRON using nCronTabs which are the exact same as cron scheduling

Asp.Net and Web services are typically responsive. They wait and respond to requests. There are hacks to make them look like schedulers but the hacks are ugly beyond belief.

You could use a Windows Service. Or write an executable and use the Windows Task Scheduler.

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