コード例 #1
0
 /// <summary>
 /// To access this type any of the claims listed is required
 /// </summary>
 /// <param name="claims"></param>
 /// <returns></returns>
 public SchemaType <TBaseType> RequiresAnyClaim(params string[] claims)
 {
     if (AuthorizeClaims == null)
     {
         AuthorizeClaims = new RequiredClaims();
     }
     AuthorizeClaims.RequiresAnyClaim(claims);
     return(this);
 }
コード例 #2
0
ファイル: Field.cs プロジェクト: yangmaomao86/EntityGraphQL
 /// <summary>
 /// To access this field any claims listed is required
 /// </summary>
 /// <param name="claims"></param>
 /// <returns></returns>
 public Field RequiresAnyClaim(params string[] claims)
 {
     if (AuthorizeClaims == null)
     {
         AuthorizeClaims = new RequiredClaims();
     }
     AuthorizeClaims.RequiresAnyClaim(claims);
     return(this);
 }