C# Class DotNetWorkQueue.Queue.QueueWait

Delays querying the transport for a length of time.
Inheritance: IQueueWait
Show file Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
QueueWait ( IEnumerable backoffTimes, ICancelWork tokenWorkerCanceled ) : System

Initializes a new instance of the QueueWait class.

Reset ( ) : void

Resets the wait time back to the start.

Wait ( ) : void

Waits until the next wait time has expired

Wait ( Action waitTime ) : void

Waits until the specified time span has been reached.

Private Methods

Method Description
WaitInternal ( System.TimeSpan timeToWait ) : void

Waits for the specified amount of time

Method Details

QueueWait() public method

Initializes a new instance of the QueueWait class.
/// Back off helper must be initialized with at least one time span!;backoffTimes /// or /// backoffTimes ///
public QueueWait ( IEnumerable backoffTimes, ICancelWork tokenWorkerCanceled ) : System
backoffTimes IEnumerable The back off times.
tokenWorkerCanceled ICancelWork The cancel token.
return System

Reset() public method

Resets the wait time back to the start.
public Reset ( ) : void
return void

Wait() public method

Waits until the next wait time has expired
public Wait ( ) : void
return void

Wait() public method

Waits until the specified time span has been reached.
public Wait ( Action waitTime ) : void
waitTime Action The how long the wait will last.
return void