I am still learning Asp.net MVC but I want to create a way for a user to cancel a search if it's taking too long. I am running VS 2010 and upgrading to 2012 is not an option, so I will not be able to use async/await options.
I have been researching and I can't find a clear cut example/way of doing this with ASP.NET MVC framework without async/await. If I use separate threads, it could be a bad idea because IIS may kill it after 3 min or so. Also, because the controller is instantiated each time a call to the server is made, how would I communicate back to the "stop variable" in the thread? Should I use a web service instead and use this to pull the searches and handle threading? I am confused.
thank you.