예제 #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;
 }
예제 #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);
     }
 }
예제 #4
0
 public ClaimPropertyAssignment(ClaimProperty claimProperty, Expression expression)
 {
     Utility.VerifyNonNullArgument("claimProperty", claimProperty);
     Utility.VerifyNonNullArgument("expression", expression);
     this.ClaimProperty = claimProperty;
     this.Expression    = expression;
 }
예제 #5
0
 public static EqualsClaimCondition Equal(ClaimProperty claimProperty, Expression expression)
 {
     return(new EqualsClaimCondition(claimProperty, expression));
 }
예제 #6
0
 public static RegexNotMatchClaimCondition RegexNotMatch(ClaimProperty claimProperty, Expression expression)
 {
     return(new RegexNotMatchClaimCondition(claimProperty, expression));
 }