BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

ASP.NET MVC Pipeline And Extensibility

by Roopesh Shenoy on Sep 27, 2011 |

ASP.NET MVC is designed with extensibility in mind and almost every part of processing pipeline is extensible using your own providers to replace the standard implementation. Simone Chiaretta, in his blog post “An Introduction to ASP.NET MVC Extensibility” gives an introduction to various stages in the ASP.NET MVC Pipeline, and a brief explanation of how extensibility comes into picture.

The ASP.NET MVC Pipeline can be divided into the following parts -

  • Routing Part – Routing module tries to match the incoming URL with the routing table, and calling the corresponding IRouteHandler.
  • Controller creation – the IControllerFactory creates an instance of the controller based on route parameters and default naming conventions.
  • Action Execution – the IActionInvoker identifies the method to be executed, the IModelBinder validates and binds the method parameters and the IFilterProvider discovers filters to be applied. The Action returns a type ActionResult.
  • View – the IViewEngine instantiates the correct view engine and the model is passed to the view. Using Model Validation Provider, the validation rules are retrieved to create client-side validation scripts as well as remote validation scripts

Every interface in the above pipeline can be implemented as a custom provider to replace the default implementation, using extensibility. Simone explains the different types of extensions, based on their purpose, and promises to cover each of these in more detail in subsequent articles -

Do checkout the article for a much more detailed explanation.

ASP.NET MVC (Model-View-Controller) is a patterns based way to build dynamic websites in ASP.NET, as an alternative to the event-driven web-forms. It helps in clear separation of concerns and gives full control over the html markup.  

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT