4

My website needs to somehow do something every few minutes.

Essentially I get projects from another website. I then call one of my web pages and update.

Currently I'm making a console app for this but I'm wondering if there is a better way.

Thanks

Dennis Alexander
  • 861
  • 1
  • 11
  • 26
jmasterx
  • 52,639
  • 96
  • 311
  • 557
  • http://stackoverflow.com/questions/507247/recommend-a-c-sharp-task-scheduling-library – Win Feb 02 '13 at 00:37

3 Answers3

4

There are super cool, open source tool exist for creating a scheduled jobs in .NET
It called Quartz.NET. I think currently is #1 tool for that tasks.

Ph0en1x
  • 9,943
  • 8
  • 48
  • 97
2

Use windows task scheduler to run the console app your writing at the appropriate times.

Servy
  • 202,030
  • 26
  • 332
  • 449
1

Depending on what needs to be done, there are a few options.

  1. This can be achieved by a timer in a windows service.
  2. Using the HttpCache expiration callback feature (not recommended, it is a hack).
  3. Use a Sql job (assuming data is changing).
  4. Building upon @Ph0en1x answer, there already is a Stackoverlow question on how to use Quartz.Net in ASP.Net
Community
  • 1
  • 1
Chuck Conway
  • 16,287
  • 11
  • 58
  • 101