C# Class DotNetWorkQueue.Transport.SqlServer.Basic.SqlServerMessageQueueClearExpiredMessages

Deletes expired messages from the queue
Inheritance: IClearExpiredMessages
Mostrar archivo Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
ClearMessages ( CancellationToken cancelToken ) : long

Clears the expired messages from the queue

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

Initializes a new instance of the SqlServerMessageQueueClearExpiredMessages 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

SqlServerMessageQueueClearExpiredMessages() public method

Initializes a new instance of the SqlServerMessageQueueClearExpiredMessages class.
public SqlServerMessageQueueClearExpiredMessages ( 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