/// Interface for a class that can Transform a Message from one type to another either
/// before consumption or before sent by a producer.
public interface IMessageTransformer
/// Called from an IMessageProducer prior to sending the IMessage, allows the client
/// to perform a transformation on the Message prior to it being sent. This allows a
/// client to configure a single Producer to convert a Message to a format that can be
/// processed by a specific receiving client.
IMessage ProducerTransform(ISession session, IMessageProducer producer, IMessage message);
/// Called from an IMessageConsumer prior to dispatching the message to the client either
/// by the 'Receive' methods or from the async listener event. Allows the client to perform
/// message pre-processing before some messages are dispatched into the client code.
IMessage ConsumerTransform(ISession session, IMessageConsumer producer, IMessage message);