C# 클래스 FrontendServices.Authorization.AuthorizationExtensions

파일 보기 프로젝트 열기: LeagueOfDevelopers/LodCore

공개 메소드들

메소드 설명
AssertResourceOwner ( this principal, int identityId ) : void
AssertResourceOwnerOrAdmin ( this principal, int identityId ) : void
GetId ( this identity ) : int
IsInRole ( this principal, AccountRole role ) : bool

메소드 상세

AssertResourceOwner() 공개 정적인 메소드

public static AssertResourceOwner ( this principal, int identityId ) : void
principal this
identityId int
리턴 void

AssertResourceOwnerOrAdmin() 공개 정적인 메소드

public static AssertResourceOwnerOrAdmin ( this principal, int identityId ) : void
principal this
identityId int
리턴 void

GetId() 공개 정적인 메소드

public static GetId ( this identity ) : int
identity this
리턴 int

IsInRole() 공개 정적인 메소드

public static IsInRole ( this principal, AccountRole role ) : bool
principal this
role AccountRole
리턴 bool