C# Class DotNetWorkQueue.Logging.Decorator.ClearExpiredMessagesDecorator

Inheritance: IClearExpiredMessages
Mostrar archivo Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
ClearExpiredMessagesDecorator ( ILogFactory log, IClearExpiredMessages handler, IConnectionInformation connectionInfo ) : System.Threading

Initializes a new instance of the ClearExpiredMessagesDecorator class.

ClearMessages ( CancellationToken cancelToken ) : long

Clears the expired messages from the queue

Method Details

ClearExpiredMessagesDecorator() public method

Initializes a new instance of the ClearExpiredMessagesDecorator class.
public ClearExpiredMessagesDecorator ( ILogFactory log, IClearExpiredMessages handler, IConnectionInformation connectionInfo ) : System.Threading
log ILogFactory The log.
handler IClearExpiredMessages The handler.
connectionInfo IConnectionInformation The connection information.
return System.Threading

ClearMessages() public method

Clears the expired messages from the queue
public ClearMessages ( CancellationToken cancelToken ) : long
cancelToken System.Threading.CancellationToken The cancel token. When signaled, processing should stop as soon as possible
return long