I need a reliable way to run 10 different tasks simultaneously. For example, the first will send emails, and the next will clear rows from a specific table ... so on.
I used the Thread class, and although it works well on my development machine (VS2010 internal web server), not one of these threads seems to work on my production server at all. And I do not know how to efficiently debug a problem on a production server.
I saw this method that prompts you to register cache objects. Since the application starts the callback when the cached item expires, then any code can be run to mimic the behavior of the threads. It seems a little Mickey Mouse.
I think my questions are the right way to endlessly run background tasks in ASP.NET MVC2 applications?
Roman source
share