Ravi Vishwakarma is a dedicated Software Developer with a passion for crafting efficient and innovative solutions. With a keen eye for detail and years of experience, he excels in developing robust software systems that meet client needs. His expertise spans across multiple programming languages and technologies, making him a valuable asset in any software development project.
Ravi Vishwakarma
13-Jun-2025What Are Filters?
Filters are attributes (decorators) that allow code to run:
They enable cross-cutting concerns like:
Types of Filters
IAuthorizationFilter
(MVC) /AuthorizeAttribute
IActionFilter
/ActionFilterAttribute
IResultFilter
/ResultFilterAttribute
IExceptionFilter
/ExceptionFilterAttribute
IResourceFilter
Filter Execution Order
Examples
1. Authorization Filter
2. Custom Action Filter
Usage:
3. Exception Filter
Filter Scopes
Filters can be applied at:
Use Cases Summary