public bool Equals(RecordedBinding other)
 {
     return(other != null &&
            (Source.Equals(other.Source)) &&
            (Destination.Equals(other.Destination)) &&
            (RoutingKey.Equals(other.RoutingKey)) &&
            (Arguments == other.Arguments));
 }
 public bool Equals(RecordedBinding other)
 {
     return other != null && 
         (Source.Equals(other.Source)) &&
         (Destination.Equals(other.Destination)) &&
         (RoutingKey.Equals(other.RoutingKey)) &&
         (Arguments == other.Arguments);
 }
예제 #3
0
        public bool Equals(RecordedBinding other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return((Source.Equals(other.Source)) &&
                   (Destination.Equals(other.Destination)) &&
                   (RoutingKey.Equals(other.RoutingKey)) &&
                   (Arguments == other.Arguments));
        }
 public void RecordBinding(RecordedBinding rb)
 {
     lock (m_recordedEntitiesLock)
     {
         m_recordedBindings.Add(rb, 0);
     }
 }
 public void DeleteRecordedBinding(RecordedBinding rb)
 {
     lock (m_recordedEntitiesLock)
     {
         m_recordedBindings.Remove(rb);
     }
 }
 public void DeleteRecordedBinding(RecordedBinding rb)
 {
     lock (m_recordedEntitiesLock)
     {
         m_recordedBindings.RemoveWhere(b => b.Equals(rb));
     }
 }
예제 #7
0
 protected bool Equals(RecordedBinding other)
 {
     return(Source == other.Source && Destination == other.Destination && RoutingKey == other.RoutingKey && Equals(Arguments, other.Arguments));
 }
        public bool Equals(RecordedBinding other)
        {
            if (ReferenceEquals(other, null))
            {
                return false;
            }

            if (ReferenceEquals(this, other))
            {
                return true;
            }

            return (Source.Equals(other.Source)) &&
                   (Destination.Equals(other.Destination)) &&
                   (RoutingKey.Equals(other.RoutingKey)) &&
                   (Arguments == other.Arguments);
        }