Interface IFilterObserver<TContext>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public interface IFilterObserver<in TContext> where TContext : class, PipeContext
Type Parameters
TContext
Methods
PostSend(TContext)
Called after the message has been dispatched to all consumers - note that in the case of an exception this method is not called, and the DispatchFaulted method is called instead
Task PostSend(TContext context)
Parameters
context
TContext
Returns
PreSend(TContext)
Called before a message is dispatched to any consumers
Task PreSend(TContext context)
Parameters
context
TContextThe consume context
Returns
SendFault(TContext, Exception)
Called after the message has been dispatched to all consumers when one or more exceptions have occurred
Task SendFault(TContext context, Exception exception)
Parameters
context
TContextexception
Exception