public override int GetHashCode() { unchecked { int hashCode = MessagesPerResize; hashCode = (hashCode * 397) ^ BackoffRate.GetHashCode(); hashCode = (hashCode * 397) ^ RampupRate.GetHashCode(); hashCode = (hashCode * 397) ^ BackoffThreshold.GetHashCode(); hashCode = (hashCode * 397) ^ UpperBound; hashCode = (hashCode * 397) ^ PressureThreshold; hashCode = (hashCode * 397) ^ LowerBound; return(hashCode); } }
public bool Equals(DefaultResizer other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(MessagesPerResize == other.MessagesPerResize && BackoffRate.Equals(other.BackoffRate) && RampupRate.Equals(other.RampupRate) && BackoffThreshold.Equals(other.BackoffThreshold) && UpperBound == other.UpperBound && PressureThreshold == other.PressureThreshold && LowerBound == other.LowerBound); }