C# Класс Retryable.BackoffPolicies

Показать файл Открыть проект

Открытые методы

Метод Описание
Linear ( int retryCount, System.TimeSpan minBackoff, System.TimeSpan maxBackoff, System.TimeSpan deltaBackoff ) : System.TimeSpan

Computes a linearly increasing delay based on the number of retries. Randomization is added to avoid a 'thundering herd' of retries when the service becomes available.

RandomExponential ( int retryCount, System.TimeSpan minBackoff, System.TimeSpan maxBackoff, System.TimeSpan deltaBackoff ) : System.TimeSpan

Computes an exponentially increasing delay based on the number of retries. Randomization is added to avoid a 'thundering herd' of retries when the service becomes available.

Описание методов

Linear() публичный статический Метод

Computes a linearly increasing delay based on the number of retries. Randomization is added to avoid a 'thundering herd' of retries when the service becomes available.
/// , /// are less then zero, or /// is less than or equal to zero. ///
public static Linear ( int retryCount, System.TimeSpan minBackoff, System.TimeSpan maxBackoff, System.TimeSpan deltaBackoff ) : System.TimeSpan
retryCount int The retry count.
minBackoff System.TimeSpan
maxBackoff System.TimeSpan
deltaBackoff System.TimeSpan
Результат System.TimeSpan

RandomExponential() публичный статический Метод

Computes an exponentially increasing delay based on the number of retries. Randomization is added to avoid a 'thundering herd' of retries when the service becomes available.
/// , or /// are less then zero. ///
public static RandomExponential ( int retryCount, System.TimeSpan minBackoff, System.TimeSpan maxBackoff, System.TimeSpan deltaBackoff ) : System.TimeSpan
retryCount int The retry count.
minBackoff System.TimeSpan The minimum delay.
maxBackoff System.TimeSpan The maximum delay.
deltaBackoff System.TimeSpan
Результат System.TimeSpan