There's more...

Deriving from these interfaces, we can create global filters:

  • For resource filters: IResourceFilter and IAsyncResourceFilter
  • For action filters: IActionFilter and IAsyncActionFilter
  • For result filters: IResultFilter and IAsyncResultFilter
  • For exception filters: IExceptionFilter and IAsyncExceptionFilter

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.