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
Afficher le fichier Open project: i-e-b/SevenDigital.Messaging

Méthodes publiques

Méthode 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 méthode

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
Résultat void

Inject() public static méthode

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
Résultat void

LocalQueueExceptionHook() public méthode

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
Résultat System

MessageReceived() public méthode

Does nothing
public MessageReceived ( IMessage message ) : void
message IMessage
Résultat void

MessageSent() public méthode

Does nothing
public MessageSent ( IMessage message ) : void
message IMessage
Résultat void