Attributes

Go To Naming Conventions

The ASP.NET MVC framework supports four different types of filters executed in the following order:

  1. Authorisation filters – Implements the IAuthorizationFilter attribute.
  2. Action filters – Implements the IActionFilter attribute.
  3. Result filters – Implements the IResultFilter attribute.
  4. Exception filters – Implements the IExceptionFilter attribute.

The common authorisation filters that is used in Signify are

image-1601322053620.png

Example of use

Applying a filter on a single method in the controller

image-1602127617546.png

Applying a filter on the controller as a whole

image-1602127647291.png


Revision #9
Created 17 September 2020 01:54:50 by Theuns Pretorius
Updated 8 October 2020 05:17:35 by Theuns Pretorius