Table of Contents

Interface IMessageEnricher

Namespace
CarrotMQ.Core
Assembly
CarrotMQ.Core.dll

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

message object
context Context
cancellationToken CancellationToken

Returns

Task