Chapter 10. Controller Extensibility

In this chapter, you'll see how to inject extra logic into the request processing pipeline using filters, and how as an advanced user you can customize the mechanisms for locating and instantiating controllers and invoking their action methods. Finally, you'll see how to use asynchronous controllers to cope with very high volumes of traffic.

Using Filters to Attach Reusable Behaviors

You can tag extra behaviors onto controllers and action methods by decorating them with filters. Filters are .NET attributes that add extra steps to the request processing pipeline, letting you inject extra logic before and after action methods run, before and after action results are executed, and in the event of an unhandled exception. ...

Get Pro ASP.NET MVC 2 Framework now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.