Controller creation question
in MVC.NET is a controller created once, or for each request开发者_如何学Python?
It depends on used IControllerFactory
realization. But DefaultControllerFactory
creates new controller instance for each request.
The Controller is instantiated on each request.
http://blog.stevensanderson.com/2007/11/20/aspnet-mvc-pipeline-lifecycle/
精彩评论