示例#1
0
 public virtual bool Compare(ClaimCondition other)
 {
     if (other != null)
     {
         if (this.ClaimProperty.Compare(other.ClaimProperty))
         {
             if (this.Expression.Compare(other.Expression))
             {
                 return(true);
             }
             else
             {
                 return(false);
             }
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
示例#2
0
		public virtual bool Compare(ClaimCondition other)
		{
			if (other != null)
			{
				if (this.ClaimProperty.Compare(other.ClaimProperty))
				{
					if (this.Expression.Compare(other.Expression))
					{
						return true;
					}
					else
					{
						return false;
					}
				}
				else
				{
					return false;
				}
			}
			else
			{
				return false;
			}
		}
		public override bool Compare(ClaimCondition other)
		{
			RegexNotMatchClaimCondition regexNotMatchClaimCondition = other as RegexNotMatchClaimCondition;
			if (regexNotMatchClaimCondition != null)
			{
				return base.Compare(other);
			}
			else
			{
				return false;
			}
		}
示例#4
0
		public override bool Compare(ClaimCondition other)
		{
			EqualsClaimCondition equalsClaimCondition = other as EqualsClaimCondition;
			if (equalsClaimCondition != null)
			{
				return base.Compare(other);
			}
			else
			{
				return false;
			}
		}
        public override bool Compare(ClaimCondition other)
        {
            EqualsClaimCondition equalsClaimCondition = other as EqualsClaimCondition;

            if (equalsClaimCondition != null)
            {
                return(base.Compare(other));
            }
            else
            {
                return(false);
            }
        }
示例#6
0
        public override bool Compare(ClaimCondition other)
        {
            RegexMatchClaimCondition regexMatchClaimCondition = other as RegexMatchClaimCondition;

            if (regexMatchClaimCondition != null)
            {
                return(base.Compare(other));
            }
            else
            {
                return(false);
            }
        }