C# Class DotNetWorkQueue.Transport.SQLite.Basic.SqLiteMessageQueueClearExpiredMessages

Deletes expired messages from the queue
Inheritance: IClearExpiredMessages
显示文件 Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
ClearMessages ( CancellationToken cancelToken ) : long

Clears the expired messages from the queue

SqLiteMessageQueueClearExpiredMessages ( IConnectionInformation connectionInfo, IQueryHandler findExpiredMessagesQueryHandler, long>.ICommandHandlerWithOutput deleteMessageCommandHandler ) : System.Collections.Generic

Initializes a new instance of the SqLiteMessageQueueClearExpiredMessages class.

Method Details

ClearMessages() public method

Clears the expired messages from the queue
public ClearMessages ( CancellationToken cancelToken ) : long
cancelToken System.Threading.CancellationToken The cancel token. If fired, stop processing
return long

SqLiteMessageQueueClearExpiredMessages() public method

Initializes a new instance of the SqLiteMessageQueueClearExpiredMessages class.
public SqLiteMessageQueueClearExpiredMessages ( IConnectionInformation connectionInfo, IQueryHandler findExpiredMessagesQueryHandler, long>.ICommandHandlerWithOutput deleteMessageCommandHandler ) : System.Collections.Generic
connectionInfo IConnectionInformation The connection information.
findExpiredMessagesQueryHandler IQueryHandler The find expired messages query handler.
deleteMessageCommandHandler long>.ICommandHandlerWithOutput The delete message command handler.
return System.Collections.Generic