BT

InfoQ Homepage News ASP.NET MVC Pipeline And Extensibility

ASP.NET MVC Pipeline And Extensibility

This item in japanese

Bookmarks

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.  

Rate this Article

Adoption
Style

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.

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

Community comments

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

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

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.