Expand built-in filters tasks description (#13358)

pull/13361/head
Dmitriy Aflitonov 2019-07-17 14:26:11 +03:00 committed by Luke Latham
parent 182b166098
commit 4bf397d52b
1 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ author: ardalis
description: Learn how filters work and how to use them in ASP.NET Core.
ms.author: riande
ms.custom: mvc
ms.date: 05/08/2019
ms.date: 07/17/2019
uid: mvc/controllers/filters
---
# Filters in ASP.NET Core
@ -15,8 +15,9 @@ By [Kirk Larkin](https://github.com/serpent5), [Rick Anderson](https://twitter.c
Built-in filters handle tasks such as:
* Authorization (preventing access to resources a user isn't authorized for).
* Response caching (short-circuiting the request pipeline to return a cached response).
* Authorization – Prevent access to resources a user isn't authorized for.
* Response caching – Short-circuit the request pipeline to return a cached response.
* Error proccessing – Handle errors raised when a controller action executes.
Custom filters can be created to handle cross-cutting concerns. Examples of cross-cutting concerns include error handling, caching, configuration, authorization, and logging. Filters avoid duplicating code. For example, an error handling exception filter could consolidate error handling.