Skip to main content

Filters

  • Chapter
  • First Online:
Pro ASP.NET MVC 5
  • 3958 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics