/// <inheritdoc/> public override int GetHashCode() { unchecked { int hashCode = Resizer?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ UsePoolDispatcher.GetHashCode(); hashCode = (hashCode * 397) ^ NrOfInstances; return(hashCode); } }
//TODO: add supervisor strategy to the equality compare public bool Equals(Pool other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(Resizer, other.Resizer) && UsePoolDispatcher.Equals(other.UsePoolDispatcher) && NrOfInstances == other.NrOfInstances); }