Question

Consider we have a working computer support incident management web site developed with ASP.NET MVC3. Currently, support staff operators register support incidents manually.

I need to implement a scheduled unattended incident registration functionality. Basically introduce a class, which instance will be running all the time (when the web site is running of course) and based on internal logic will be adding new incidents to a data storage.

Where can I put such code, to be sure it's instance is in memory, operational at all time?

Was it helpful?

Solution

Here is a post of Phil Haack -ASP.NET MVC team- where he talks about it and shows best practices to do it.

http://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx

OTHER TIPS

If the question is how to run scheduled tasks on asp.net site, you can use a open source project called

Quartz

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top