filter

Code that runs before or after a controller action to handle a concern such as validation, logging or authorization for selected actions.

In more detail

ASP.NET Core has several kinds, including authorization, action, exception and result filters. Use filters for concerns tied to endpoints and middleware for concerns that apply to the whole application.

Related terms

Taught in

References