/// <summary> /// Return the HashCode of this object. /// </summary> /// <returns>The HashCode of this object.</returns> public override Int32 GetHashCode() { unchecked { return(Status.GetHashCode() * 17 ^ CurrentTime.GetHashCode() * 11 ^ HeartbeatInterval.GetHashCode()); } }
public override int GetHashCode() { unchecked { var hashCode = CurrentTime.GetHashCode(); hashCode = CurrentScore.Aggregate(hashCode, (current, x) => (current * 397) ^ x.GetHashCode()); hashCode = ScoresByPeriod.Aggregate(hashCode, (current, x) => (current * 397) ^ x.GetHashCode()); return(hashCode); } }
/// <summary> /// Return the HashCode of this object. /// </summary> /// <returns>The HashCode of this object.</returns> public override Int32 GetHashCode() { unchecked { return(Status.GetHashCode() * 11 ^ CurrentTime.GetHashCode() * 7 ^ Interval.GetHashCode() * 5 ^ (StatusInfo != null ? StatusInfo.GetHashCode() : 0) * 3 ^ (CustomData != null ? CustomData.GetHashCode() : 0)); } }
public override int GetHashCode() { int hash = 1; if (CurrentTime != 0) { hash ^= CurrentTime.GetHashCode(); } if (Hostip.Length != 0) { hash ^= Hostip.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
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() { int hash = 1; if (LedgerId.Length != 0) { hash ^= LedgerId.GetHashCode(); } if (currentTime_ != null) { hash ^= CurrentTime.GetHashCode(); } if (newTime_ != null) { hash ^= NewTime.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Return the HashCode of this object. /// </summary> /// <returns>The HashCode of this object.</returns> public override Int32 GetHashCode() => CurrentTime.GetHashCode();