Esempio n. 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);
 }
Esempio n. 2
0
 /// <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);
 }