开发者

ASP>NET MVC 3 Controller Concurrency Model

What is the concurrency model behind aps.net MVC 3? I mean, when many users are accessing a aps.net MVC 3 website, do we have a new instance of controller for each request or the one controller is shared for one user session or all users?

Could you point to some proper documentat开发者_如何学Cion on this?


Yes, if you use the default controller factory, each request instantiates a new controller instance.

There's interesting reading here.


Yes, you get a single instance for each request which is disposed at the end of the request. The best documentation I know of for such details is the source code.

I described the flow which calls Controller.Dispose in this older question.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜