C# Class DotNetWorkQueue.Queue.MessageProcessing

Process new messages
Inheritance: IMessageProcessing
Show file Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
Handle ( ) : void

Looks for a new message to process

MessageProcessing ( IReceiveMessagesFactory receiveMessages, IMessageContextFactory messageContextFactory, IQueueWaitFactory queueWaitFactory, ILogFactory log, ProcessMessage processMessage, IReceivePoisonMessage receivePoisonMessage, IRollbackMessage rollbackMessage ) : System

Initializes a new instance of the MessageProcessing class.

Private Methods

Method Description
DoTry ( IMessageContext context ) : void

Tries the process the new incoming message.

TryProcessIncomingMessage ( ) : void

Tries the process the new incoming message.

Method Details

Handle() public method

Looks for a new message to process
public Handle ( ) : void
return void

MessageProcessing() public method

Initializes a new instance of the MessageProcessing class.
public MessageProcessing ( IReceiveMessagesFactory receiveMessages, IMessageContextFactory messageContextFactory, IQueueWaitFactory queueWaitFactory, ILogFactory log, ProcessMessage processMessage, IReceivePoisonMessage receivePoisonMessage, IRollbackMessage rollbackMessage ) : System
receiveMessages IReceiveMessagesFactory The receive messages.
messageContextFactory IMessageContextFactory The message context factory.
queueWaitFactory IQueueWaitFactory The queue wait factory.
log ILogFactory The log.
processMessage ProcessMessage The process message.
receivePoisonMessage IReceivePoisonMessage The receive poison message.
rollbackMessage IRollbackMessage rolls back a message when an exception occurs
return System