예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((ReplicationProgress.GetHashCode() * 397) ^ (CurrentVersionVector != null ? CurrentVersionVector.GetHashCode() : 0));
     }
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FromSequenceNr.GetHashCode();
         hashCode = (hashCode * 397) ^ ReplicationProgress.GetHashCode();
         hashCode = (hashCode * 397) ^ (TargetLogId != null ? TargetLogId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CurrentSourceVersionVector != null ? CurrentSourceVersionVector.GetHashCode() : 0);
         foreach (var e in Events)
         {
             hashCode = (hashCode * 397) ^ e.GetHashCode();
         }
         return(hashCode);
     }
 }