Skip to content

Instantly share code, notes, and snippets.

@alieniasty
Last active September 24, 2017 22:05
Show Gist options
  • Save alieniasty/6d31f318f8598ddc93954cbfb4093557 to your computer and use it in GitHub Desktop.
Save alieniasty/6d31f318f8598ddc93954cbfb4093557 to your computer and use it in GitHub Desktop.
The ASP.NET MVC framework supports four different types of filters:
Authorization – Implements IAuthorizationFilter Attribute.
Action – Implements IActionFilter Attribute.
Result – Implements IResultFilter Attribute.
Exception – Implements IExceptionFilter Attribute.
Note: Filters are executed in the order listed above.
Authorization filters run very early in the action pipeline.
They are good for example to escape from the action pipeline when conditions are not met.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment