diff --git a/src/core/RetryingDispatchers/ExponentialRetryingDispatcher.cs b/src/core/RetryingDispatchers/ExponentialRetryingDispatcher.cs index 14ad69d..ee8ecf5 100644 --- a/src/core/RetryingDispatchers/ExponentialRetryingDispatcher.cs +++ b/src/core/RetryingDispatchers/ExponentialRetryingDispatcher.cs @@ -36,13 +36,13 @@ public ExponentialRetryingDispatcher(IDispatcher dispatcher, int? retr } /// - /// The method used after every message processing attmept to recalculate the retry interval (the time for which a dispatcher will wait before it retries to process a message). + /// The method used after every message processing attempt to recalculate the retry interval (the time for which a dispatcher will wait before it retries to process a message). /// /// Represents the number of times the dispatcher has already attempted to process a message. /// The amount of time the dispatcher should wait before retrying to process a message. public override TimeSpan RetryInterval(int attempt) { - return TimeSpan.FromMilliseconds(_retryPeriod.Milliseconds * Math.Pow(attempt, _exponentialMultiplier)); + return TimeSpan.FromMilliseconds(_retryPeriod.TotalMilliseconds * Math.Pow(attempt, _exponentialMultiplier)); } } }