Interface IMessageEnricher
Used to alter the message and the Context before the message is sent. Useful to set e.g. custom headers that must be set for every message.
public interface IMessageEnricher
Methods
EnrichMessageAsync(object, Context, CancellationToken)
Receives the message and context before the message is sent.
Task EnrichMessageAsync(object message, Context context, CancellationToken cancellationToken)
Parameters
messageobjectcontextContextcancellationTokenCancellationToken