public override int GetHashCode() { unchecked { var hashCode = FromSequenceNr.GetHashCode(); hashCode = (hashCode * 397) ^ (Subscriber != null ? Subscriber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AggregateId != null ? AggregateId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Max; hashCode = (hashCode * 397) ^ InstanceId; return(hashCode); } }
/// <inheritdoc/> public override int GetHashCode() { unchecked { var hashCode = FromSequenceNr.GetHashCode(); hashCode = (hashCode * 397) ^ ToSequenceNr.GetHashCode(); hashCode = (hashCode * 397) ^ Max.GetHashCode(); hashCode = (hashCode * 397) ^ (PersistenceId != null ? PersistenceId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PersistentActor != null ? PersistentActor.GetHashCode() : 0); return(hashCode); } }
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); } }