public override int GetHashCode() { int result = EndpointUri.GetHashCode(); result = 29 * result + MessageName.GetHashCode(); result = 29 * result + CorrelationId.GetHashCode(); return(result); }
/// <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 (EndpointUri != null) { hashCode = hashCode * 59 + EndpointUri.GetHashCode(); } if (ConnectionTimeout != null) { hashCode = hashCode * 59 + ConnectionTimeout.GetHashCode(); } if (SocketTimeout != null) { hashCode = hashCode * 59 + SocketTimeout.GetHashCode(); } return(hashCode); } }