Exemple #1
0
 /// <summary>
 ///     获取角色对应的Claim
 /// </summary>
 /// <param name="role"></param>
 /// <returns></returns>
 public static Claim GetRoleClaim(UserRole role)
 {
     return(new(ClaimTypes.Role, role.AsUserRoleString()));
 }