Class AbstractTaskSchedulerChannelInterceptor
public abstract class AbstractTaskSchedulerChannelInterceptor : AbstractChannelInterceptor, ITaskSchedulerChannelInterceptor, IChannelInterceptor, IOrdered
- Inheritance
-
AbstractTaskSchedulerChannelInterceptor
- Implements
- Inherited Members
Methods
AfterMessageHandled(IMessage, IMessageChannel, IMessageHandler, Exception)
Invoked inside the Task submitted to the Scheduler after calling the target MessageHandler regardless of the outcome (i.e.Exception raised or not) thus allowing for proper resource cleanup.
public virtual void AfterMessageHandled(IMessage message, IMessageChannel channel, IMessageHandler handler, Exception exception)
Parameters
messageIMessagethe message to be handled
channelIMessageChannelthe channel the message is for
handlerIMessageHandlerthe target handler to handle the message
exceptionExceptionany exception that might have occured
BeforeHandled(IMessage, IMessageChannel, IMessageHandler)
Invoked inside the Task submitted to the Scheduler just before calling the target MessageHandler to handle the message.
public virtual IMessage BeforeHandled(IMessage message, IMessageChannel channel, IMessageHandler handler)
Parameters
messageIMessagethe message to be handled
channelIMessageChannelthe channel the message is for
handlerIMessageHandlerthe target handler to handle the message
Returns
- IMessage
the processed message; can be new message or null