C# Class FrontendServices.Authorization.AuthorizationExtensions

Afficher le fichier Open project: LeagueOfDevelopers/LodCore

Méthodes publiques

Méthode Description
AssertResourceOwner ( this principal, int identityId ) : void
AssertResourceOwnerOrAdmin ( this principal, int identityId ) : void
GetId ( this identity ) : int
IsInRole ( this principal, AccountRole role ) : bool

Method Details

AssertResourceOwner() public static méthode

public static AssertResourceOwner ( this principal, int identityId ) : void
principal this
identityId int
Résultat void

AssertResourceOwnerOrAdmin() public static méthode

public static AssertResourceOwnerOrAdmin ( this principal, int identityId ) : void
principal this
identityId int
Résultat void

GetId() public static méthode

public static GetId ( this identity ) : int
identity this
Résultat int

IsInRole() public static méthode

public static IsInRole ( this principal, AccountRole role ) : bool
principal this
role AccountRole
Résultat bool