Esempio n. 1
0
 public EqualsClaimCondition(ClaimProperty claimProperty, Expression expression)
 {
     Utility.VerifyNonNullArgument("claimProperty", claimProperty);
     Utility.VerifyNonNullArgument("expression", expression);
     base.ClaimProperty = claimProperty;
     base.Expression    = expression;
 }
 public ClaimPropertyAccessExpression(ClaimProperty claimProperty, string conditionTag)
 {
     Utility.VerifyNonNullArgument("claimProperty", claimProperty);
     Utility.VerifyNonNullArgument("conditionTag", conditionTag);
     this.ClaimProperty = claimProperty;
     this.ConditionTag  = conditionTag;
 }
Esempio n. 3
0
 public virtual bool Compare(ClaimProperty other)
 {
     if (other != null)
     {
         if (this.PropertyType == other.PropertyType)
         {
             if (StringComparer.Ordinal.Equals(this.PropertyName, other.PropertyName))
             {
                 return(true);
             }
             else
             {
                 return(false);
             }
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Esempio n. 4
0
 public ClaimPropertyAssignment(ClaimProperty claimProperty, Expression expression)
 {
     Utility.VerifyNonNullArgument("claimProperty", claimProperty);
     Utility.VerifyNonNullArgument("expression", expression);
     this.ClaimProperty = claimProperty;
     this.Expression    = expression;
 }
Esempio n. 5
0
 public static EqualsClaimCondition Equal(ClaimProperty claimProperty, Expression expression)
 {
     return(new EqualsClaimCondition(claimProperty, expression));
 }
Esempio n. 6
0
 public static RegexNotMatchClaimCondition RegexNotMatch(ClaimProperty claimProperty, Expression expression)
 {
     return(new RegexNotMatchClaimCondition(claimProperty, expression));
 }