0
In ASP.NET Core, **filters** are components that enable code to be run before or after certain stages in the request processing pipeline. They are used to implement cross-cutting concerns like logging, authorization, caching, and exception handling. There are several types of filters:
1. **Authorization Filters**: Handle authentication and authorization.
2. **Resource Filters**: Run before and after the rest of the pipeline (e.g., to manage caching).
3. **Action Filters**: Run before and after the execution of a controller action.
4. **Exception Filters**: Handle exceptions thrown during the processing of requests.
5. **Result Filters**: Run before and after the execution of the action result.
Filters can be applied globally, at the controller level, or on individual actions.