C# Class Aspectacular.DemandAspNetRoleAttribute

Inheritance: AuthorizationDemandAttribute
Datei anzeigen Open project: vgribok/Aspectacular

Public Methods

Method Description
DemandAspNetRoleAttribute ( ) : System

Marks methods and classes as requiring current user to the member of one or more ASP.NET security roles. User must be a member of at least one demanded role in order to be authorized.

DemandAspNetRoleAttribute ( bool trueDemandAny_falseDemandAll ) : System

Marks methods and classes as requiring current user to the member of one or more ASP.NET security roles.

Protected Methods

Method Description
GetAuthorizedClaims ( ) : IEnumerable

Method Details

DemandAspNetRoleAttribute() public method

Marks methods and classes as requiring current user to the member of one or more ASP.NET security roles. User must be a member of at least one demanded role in order to be authorized.
public DemandAspNetRoleAttribute ( ) : System
return System

DemandAspNetRoleAttribute() public method

Marks methods and classes as requiring current user to the member of one or more ASP.NET security roles.
public DemandAspNetRoleAttribute ( bool trueDemandAny_falseDemandAll ) : System
trueDemandAny_falseDemandAll bool /// If true, user must me a member of *at least one* role. If false, user must /// be a member of *all* roles. ///
return System

GetAuthorizedClaims() protected method

protected GetAuthorizedClaims ( ) : IEnumerable
return IEnumerable