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

This strategy provides a constant delay for every Calculate call regardless of attempt count.
Inheritance: IBackOffDelayStrategy
Datei anzeigen Open project: gtmoose32/moosesoft-azure-servicebus

Public Methods

Method Description
Calculate ( int attempts ) : TimeSpan
ConstantBackOffDelayStrategy ( TimeSpan backOffDelayTime ) : Moosesoft.Azure.ServiceBus.Abstractions

Initialize a new instance ConstantBackOffDelayStrategy.

Method Details

Calculate() public method

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

ConstantBackOffDelayStrategy() public method

Initialize a new instance ConstantBackOffDelayStrategy.
public ConstantBackOffDelayStrategy ( TimeSpan backOffDelayTime ) : Moosesoft.Azure.ServiceBus.Abstractions
backOffDelayTime TimeSpan Constant TimeSpan returned always when this strategy is asked to calculate new delay.
return Moosesoft.Azure.ServiceBus.Abstractions