Advertisement

Filters

  • Adam Freeman
Chapter

Abstract

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

Copyright information

© Adam Freeman 2016

Authors and Affiliations

  • Adam Freeman
    • 1
  1. 1.Milton Keynes MK6 3PAUK

Personalised recommendations