Interface ITaskSchedulerChannelInterceptor
A specialized ChannelInterceptor for TaskScheduler based channels
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public interface ITaskSchedulerChannelInterceptor : IChannelInterceptor, IOrdered
- 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.
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.
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