Scheduled events in ASP.NET?

My site should somehow do something every few minutes.

In fact, I get projects from another site. Then I call up one of my web pages and refresh.

I am currently creating a console application for this, but I am wondering if there is a better way.

thanks

+4
source share
3 answers

There is a super cool open source tool for creating scheduled tasks in .NET
It was called Quartz.NET . I believe this is currently the # 1 tool for these tasks.

+4
source

Use the Windows Task Scheduler to start the console application in writing at the appropriate time.

+2
source

There are several options, depending on what needs to be done.

  • This can be achieved by a timer in the Windows service.
  • Using the HttpCache expiration callback function (not recommended, this is a hack).
  • Use the Sql job (when changing data).
  • Based on @ Ph0en1x's answer, there is already a Stackoverlow question on how to use Quartz.Net in ASP.Net
+1
source

All Articles