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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.