Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = MaxAttempts;
         hashCode = (hashCode * 397) ^ AttemptTimeout.GetHashCode();
         hashCode = (hashCode * 397) ^ AttemptDelay.GetHashCode();
         return(hashCode);
     }
 }
Example #2
0
 protected bool Equals(RetryStrategy other)
 {
     return(MaxAttempts == other.MaxAttempts &&
            AttemptTimeout.Equals(other.AttemptTimeout) &&
            AttemptDelay.Equals(other.AttemptDelay));
 }