Thread safety in ASP.Net MVC
asp.net-mvc, multithreading
Solution
Local variables in that method will be per-call. I presume (don't know MVC) that the Controller instances are per-request, so any instance members would be safe.
But if there are any static or other shared members, then they are not safe.
Problem
I suspect this applies to general ASP.Net too but I am not sure. If I have an action method on a Controller, say MyController.DoSomethingExciting and three clients hit it at "the same time", is it intrinsically thread safe, or do I need to do something to ensure that the three concurrent calls don't interact with each other?