Abstract
Filters inject extra logic into MVC Framework request processing. They provide a simple and elegant way to implement cross-cutting concerns. This term 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 pattern. Classic examples of cross-cutting concerns are logging, authorization, and caching. In this chapter, I show you the different categories of filters that the MVC Framework supports, how to create and use custom filters, and how to control their execution. Table 18-1 provides the summary for this chapter.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Adam Freeman
About this chapter
Cite this chapter
Freeman, A. (2013). Filters. In: Pro ASP.NET MVC 5. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6530-6_18
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6530-6_18
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6529-0
Online ISBN: 978-1-4302-6530-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)