C# Class Disco.Services.Authorization.ClaimExtensions

显示文件 Open project: garysharp/Disco

Public Methods

Method Description
Has ( this c, string ClaimKey ) : bool
Set ( this c, string ClaimKey, bool Value ) : void
SetClaims ( this role, RoleClaims Claims ) : void

Method Details

Has() public static method

public static Has ( this c, string ClaimKey ) : bool
c this
ClaimKey string
return bool

Set() public static method

public static Set ( this c, string ClaimKey, bool Value ) : void
c this
ClaimKey string
Value bool
return void

SetClaims() public static method

public static SetClaims ( this role, RoleClaims Claims ) : void
role this
Claims Disco.Services.Authorization.Roles.RoleClaims
return void