Start timer on web application start

Posted by brainimus on Stack Overflow See other posts from Stack Overflow or by brainimus
Published on 2010-06-08T19:55:59Z Indexed on 2010/06/08 20:02 UTC
Read the original article Hit count: 177

Filed under:
|

I would like to start a System.Threading.Timer in my application when it launches (maybe deploy is the correct word). I have seen that you can use Application_Start() but this is only fired once the first request comes to the application. I need the timer to start as soon as the application is running so that it can check for work to process even if a user is not interacting with the site. How can I get the application to start the timer once it is up and running?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET