示例#1
0
 public static AuthorizationPolicyBuilder RequireAllRolesWithAdmin(this AuthorizationPolicyBuilder builder, params string[] roles)
 {
     foreach (var role in roles)
     {
         builder.RequireRoleWithAdmin(role);
     }
     return(builder);
 }