C# Class DotNetWorkQueue.Queue.MessageExceptionHandler

Handles action for when a message throws an exception.
Show file Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
Handle ( IReceivedMessageInternal message, IMessageContext context, Exception exception ) : void

Handles the specified message.

MessageExceptionHandler ( IReceiveMessagesError transportErrorHandler, ILogFactory log ) : System

Initializes a new instance of the MessageExceptionHandler class.

Method Details

Handle() public method

Handles the specified message.
An error has occurred in the error handling code An unhanded exception has occurred while processing a message
public Handle ( IReceivedMessageInternal message, IMessageContext context, Exception exception ) : void
message IReceivedMessageInternal The message.
context IMessageContext The context.
exception System.Exception The exception.
return void

MessageExceptionHandler() public method

Initializes a new instance of the MessageExceptionHandler class.
public MessageExceptionHandler ( IReceiveMessagesError transportErrorHandler, ILogFactory log ) : System
transportErrorHandler IReceiveMessagesError The transport error handler.
log ILogFactory The log.
return System