public override int GetHashCode() { unchecked { return(((EmitterId != null ? EmitterId.GetHashCode() : 0) * 397) ^ InstanceId); } }
public override int GetHashCode() { var hashCode = 17; hashCode = hashCode * 23 + (EmitterId?.GetHashCode() ?? 0); hashCode = hashCode * 23 + SequenceNr.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = (Payload != null ? Payload.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EmitterId != null ? EmitterId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LastEvent != null ? LastEvent.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CurrentTime != null ? CurrentTime.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SequenceNr.GetHashCode(); foreach (var deliveryAttempt in DeliveryAttempts) { hashCode = (hashCode * 397) ^ deliveryAttempt.GetHashCode(); } foreach (var onEventRequest in PersistOnEventRequests) { hashCode = (hashCode * 397) ^ onEventRequest.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Payload != null ? Payload.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EmitterId != null ? EmitterId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (EmitterAggregateId != null ? EmitterAggregateId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SystemTimestamp.GetHashCode(); hashCode = (hashCode * 397) ^ (VectorTimestamp != null ? VectorTimestamp.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ProcessId != null ? ProcessId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LocalLogId != null ? LocalLogId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ LocalSequenceNr.GetHashCode(); hashCode = (hashCode * 397) ^ (DeliveryId != null ? DeliveryId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PersistOnEventSequenceNr.GetHashCode(); hashCode = (hashCode * 397) ^ PersistOnEventId.GetHashCode(); hashCode = (hashCode * 397) ^ Id.GetHashCode(); foreach (var id in CustomDestinationAggregateIds) { hashCode = (hashCode * 397) ^ id.GetHashCode(); } return(hashCode); } }