Esempio n. 1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Decider != null ? Decider.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MaxNumberOfRetries.GetHashCode();
         hashCode = (hashCode * 397) ^ WithinTimeRangeMilliseconds.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 2
0
        /// <inheritdoc/>
        public bool Equals(AllForOneStrategy other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }
            if (ReferenceEquals(other, this))
            {
                return(true);
            }

            return(MaxNumberOfRetries.Equals(other.MaxNumberOfRetries) &&
                   WithinTimeRangeMilliseconds.Equals(other.WithinTimeRangeMilliseconds) &&
                   Decider.Equals(other.Decider));
        }