Filters inject extra logic into MVC request processing. They provide a simple and elegant way to implement cross-cutting concerns—a term that refers to functionality that is used all over an application and doesn’t fit neatly into any one place, where it would break the separation of concerns. Classic examples of cross-cutting concerns are logging, authorization, and caching. In this chapter, I show you the different categories of filters that MVC supports, how to create and use custom filters, and how to control their execution. Table 19-1 puts filters in context.
Table 19-1. Putting Filters in Context
Question ... |
---|