C# Class Moosesoft.Azure.ServiceBus.BackOffDelayStrategy.LinearBackOffDelayStrategy

This strategy performs back off delay calculations using a linear model.
Inheritance: IBackOffDelayStrategy
ファイルを表示 Open project: gtmoose32/moosesoft-azure-servicebus

Public Methods

Method Description
Calculate ( int attempts ) : TimeSpan
LinearBackOffDelayStrategy ( TimeSpan initialDelay ) : Moosesoft.Azure.ServiceBus.Abstractions

Initialize a new instance LinearBackOffDelayStrategy.

Method Details

Calculate() public method

public Calculate ( int attempts ) : TimeSpan
attempts int
return TimeSpan

LinearBackOffDelayStrategy() public method

Initialize a new instance LinearBackOffDelayStrategy.
public LinearBackOffDelayStrategy ( TimeSpan initialDelay ) : Moosesoft.Azure.ServiceBus.Abstractions
initialDelay TimeSpan
return Moosesoft.Azure.ServiceBus.Abstractions