Esempio n. 1
0
 /// <inheritdoc />
 public bool Equals(MessageHeader other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(MessageGuid.Equals(other.MessageGuid) &&
            ProducerProcessID == other.ProducerProcessID &&
            string.Equals(ProducerExecutableName, other.ProducerExecutableName) &&
            OriginalPublishTimestamp == other.OriginalPublishTimestamp &&
            Parents.SequenceEqual(other.Parents));
 }
Esempio n. 2
0
 public bool Equals(MongoExtractionMessageHeaderDoc other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(ExtractionJobIdentifier.Equals(other.ExtractionJobIdentifier) &&
            MessageGuid.Equals(other.MessageGuid) &&
            ProducerExecutableName == other.ProducerExecutableName &&
            ProducerProcessID == other.ProducerProcessID &&
            OriginalPublishTimestamp.Equals(other.OriginalPublishTimestamp) &&
            Parents == other.Parents &&
            ReceivedAt.Equals(other.ReceivedAt));
 }