开发者

Up to date ASP.Net MVC 3 Request-Handling Pipeline Diagram?

Can anyone point me to an up-to date diagram of the ASP.Net MVC 3 request handling pipeline?

I've got an older version (MVC v1, v2), but it's no longer accurate, given t开发者_运维知识库he introduction of IControllerActivator in MVC3 (and possibly other framework changes).


This is somewhat late for an answer but this could help someone (definitely helped me)

ASP.NET MVC Pipeline

Taken from this great article: An Introduction to ASP.NET MVC Extensibility


This is a Request-handling Pipeline for ASP.NET MVC 2: http://ajaxus.net/wp-content/uploads/2010/01/asp_net_mvc_poster.pdf (or see page 228, Pro ASP.NET MVC 2 by Steven Sanderson).

The request pipeline is (maybe) not change in V3, but MVC 3 is extend some point to allow injection in every node of pipeline.

Example:
- At node: Controller factory:
+ ControllerBuilder create an instance of IControllerFactory (ex: the default factory)
+ factory implement Create() of IControllerFactory by:
++ Using an instance of IControllerActivation (activation)
++ Call activation.Create() of IControllerActivation to get instance of controller

So, IControllerActivation is work in DefaultControllerFactory. We can still use DefaultControllerFactory and replace IControllerActivation, or replace the DefaultControllerFactory with custom IControllerFactory (with or without use IControllerActivation)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜