C# Class SevenDigital.Messaging.ConfigurationActions.LocalQueueExceptionHook

An event hook that writes handler exceptions from this process to a locally accessible DiskQueue.

If you manually add this queue, you must add a ctor storage parameter to the structure map configuration.

Inheritance: IEventHook
显示文件 Open project: i-e-b/SevenDigital.Messaging

Public Methods

Method Description
HandlerFailed ( IMessage message, Type handler, Exception error ) : void

A message was received by this process, but a handler threw an exception

Inject ( string errorQueuePath ) : void

Inject this hook into the messaging system. Any handler exceptions will be written to the queue as `IHandlerExceptionMessage`s

LocalQueueExceptionHook ( IMessageSerialiser serialiser, string errorQueuePath ) : System

Create a new event hook, with the given storage queue.

You should use the static Inject method to add this hook.

MessageReceived ( IMessage message ) : void

Does nothing

MessageSent ( IMessage message ) : void

Does nothing

Method Details

HandlerFailed() public method

A message was received by this process, but a handler threw an exception
public HandlerFailed ( IMessage message, Type handler, Exception error ) : void
message IMessage The incoming message
handler System.Type Type of the failed handler
error System.Exception Exception thrown
return void

Inject() public static method

Inject this hook into the messaging system. Any handler exceptions will be written to the queue as `IHandlerExceptionMessage`s
public static Inject ( string errorQueuePath ) : void
errorQueuePath string
return void

LocalQueueExceptionHook() public method

Create a new event hook, with the given storage queue.

You should use the static Inject method to add this hook.

public LocalQueueExceptionHook ( IMessageSerialiser serialiser, string errorQueuePath ) : System
serialiser IMessageSerialiser
errorQueuePath string
return System

MessageReceived() public method

Does nothing
public MessageReceived ( IMessage message ) : void
message IMessage
return void

MessageSent() public method

Does nothing
public MessageSent ( IMessage message ) : void
message IMessage
return void