I am working on a MVC3 application. I want to call a function when the date is expired. I would like to use the windows service for this. Can anyone tell me steps to implement the window service in a MVC3 application? I am also open to any other options to call a function at a certain date.
3 Answers
Not possible. the application pool dies after a while. Create one MVC3 application and one Windows service.
2 Comments
Travis J
What if you created a cycle from two actions, could that keep the application pool alive? Pretty much an async action which constantly hits the other action like a game loop.
jgauffin
An application pool can at any time be recycled. You can not prevent that. Don't rely on IIS when it comes to background jobs.
you can implement the WCF services as a Windows service and create a call back in your Mvc3 application layer take a look at this link for Creating Duplex Services