Reputation: 3752
in MVC.NET is a controller created once, or for each request?
Upvotes: 1
Views: 194
Reputation: 34810
The Controller is instantiated on each request.
http://blog.stevensanderson.com/2007/11/20/aspnet-mvc-pipeline-lifecycle/
Upvotes: 0
Reputation: 3548
It depends on used IControllerFactory
realization. But DefaultControllerFactory
creates new controller instance for each request.
Upvotes: 2