/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (RequestTime != null) { hashCode = hashCode * 59 + RequestTime.GetHashCode(); } if (Availability != null) { hashCode = hashCode * 59 + Availability.GetHashCode(); } if (Invocations != null) { hashCode = hashCode * 59 + Invocations.GetHashCode(); } if (AverageResponse != null) { hashCode = hashCode * 59 + AverageResponse.GetHashCode(); } if (AverageTps != null) { hashCode = hashCode * 59 + AverageTps.GetHashCode(); } if (PeakTps != null) { hashCode = hashCode * 59 + PeakTps.GetHashCode(); } if (Errors != null) { hashCode = hashCode * 59 + Errors.GetHashCode(); } if (Rejections != null) { hashCode = hashCode * 59 + Rejections.GetHashCode(); } return(hashCode); } }