ASP.NET MVC: What is the lifetime of a Controller instance?

Posted by Kivin on Stack Overflow See other posts from Stack Overflow or by Kivin
Published on 2010-05-02T00:30:00Z Indexed on 2010/05/02 0:37 UTC
Read the original article Hit count: 577

Filed under:
|
|
|

I was unable to find any documentation on the MSDN site. Is the lifetime (construction and disposition) of the Controller object defined in the ASP.NET MVC Spec?

The reason for this question is to determine whether or not it is safe to store contextual information in Controller members/properties or whether using the HttpContext would be more appropriate.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc