开发者

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜