cron in asp.net

  • Thread starter Thread starter Hollow Quincy
  • Start date Start date
H

Hollow Quincy

Hi,

I would like to do some tasks every 3 minutes in asp.net application.
In my hosting I can't run 'exe' program, can't run sql server job and
can't use windows scheduler.
How can I execute tasks every 3 minutes in asp.net application ?
(I was wondering if I can do static Timer and run it every 3
minutes... is it good idea ? )

Thanks for help
 
Hollow Quincy said:
Hi,

I would like to do some tasks every 3 minutes in asp.net application.
In my hosting I can't run 'exe' program, can't run sql server job and
can't use windows scheduler.
How can I execute tasks every 3 minutes in asp.net application ?
(I was wondering if I can do static Timer and run it every 3
minutes... is it good idea ? )

Thanks for help

Yes. There a number of ways, but the simplest is probably to start a new
thread (at application start-up), then leave it to loop doing what ever it
needs to do with a Threading.Thread.Sleep(180000) at the end or start of the
loop.
 
Back
Top