C# 클래스 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.

상속: IEventHook
파일 보기 프로젝트 열기: i-e-b/SevenDigital.Messaging

공개 메소드들

메소드 설명
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

메소드 상세

HandlerFailed() 공개 메소드

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
리턴 void

Inject() 공개 정적인 메소드

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
리턴 void

LocalQueueExceptionHook() 공개 메소드

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
리턴 System

MessageReceived() 공개 메소드

Does nothing
public MessageReceived ( IMessage message ) : void
message IMessage
리턴 void

MessageSent() 공개 메소드

Does nothing
public MessageSent ( IMessage message ) : void
message IMessage
리턴 void