public RegexNotMatchClaimCondition(ClaimProperty claimProperty, Expression expression)
		{
			Utility.VerifyNonNullArgument("claimProperty", claimProperty);
			Utility.VerifyNonNullArgument("expression", expression);
			base.ClaimProperty = claimProperty;
			base.Expression = expression;
		}
		public override bool Compare(Expression other)
		{
			ClaimPropertyAccessExpression claimPropertyAccessExpression = other as ClaimPropertyAccessExpression;
			if (claimPropertyAccessExpression != null)
			{
				if (StringComparer.OrdinalIgnoreCase.Equals(this.ConditionTag, claimPropertyAccessExpression.ConditionTag))
				{
					if (this.ClaimProperty.Compare(claimPropertyAccessExpression.ClaimProperty))
					{
						return true;
					}
					else
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
		}
		public ClaimPropertyAssignment(ClaimProperty claimProperty, Expression expression)
		{
			Utility.VerifyNonNullArgument("claimProperty", claimProperty);
			Utility.VerifyNonNullArgument("expression", expression);
			this.ClaimProperty = claimProperty;
			this.Expression = expression;
		}
		public override bool Compare(Expression other)
		{
			StringLiteralExpression stringLiteralExpression = other as StringLiteralExpression;
			if (stringLiteralExpression != null)
			{
				return StringComparer.Ordinal.Equals(this.Value, stringLiteralExpression.Value);
			}
			else
			{
				return false;
			}
		}
Beispiel #5
0
		public abstract bool Compare(Expression other);
Beispiel #6
0
		public static EqualsClaimCondition Equal(ClaimProperty claimProperty, Expression expression)
		{
			return new EqualsClaimCondition(claimProperty, expression);
		}
Beispiel #7
0
		public static RegexNotMatchClaimCondition RegexNotMatch(ClaimProperty claimProperty, Expression expression)
		{
			return new RegexNotMatchClaimCondition(claimProperty, expression);
		}