jmasterx
jmasterx

Reputation: 54113

Scheduled Events in ASP.NET?

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

Upvotes: 4

Views: 1513

Answers (3)

Servy
Servy

Reputation: 203817

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

Upvotes: 2

Chuck Conway
Chuck Conway

Reputation: 16435

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

Upvotes: 1

Ph0en1x
Ph0en1x

Reputation: 10067

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.

Upvotes: 4

Related Questions