Delegate MessageTransformerAsync
A delegate that a client can register that will be called to preprocess messages allowing the client to modify
message properties and/or transform a message from one type to another, StreamMessage to TextMessage,
ObjectMessage to TextMessage containing XML, etc. Return null or original message if no change.
Assembly: CodersRealm.AmqpClient.dll
public delegate Task<IMessage?> MessageTransformerAsync(IMessageProducer producer, IMessage message, CancellationToken stoppingToken)
Parameters
| Type |
Name |
Description |
| IMessageProducer |
producer |
A delegate that a client can register that will be called to preprocess messages allowing the client to modify message properties and/or transform a message from one type to another, StreamMessage to TextMessage, ObjectMessage to TextMessage containing XML, etc. Return null or original message if no change. |
| IMessage |
message |
A delegate that a client can register that will be called to preprocess messages allowing the client to modify message properties and/or transform a message from one type to another, StreamMessage to TextMessage, ObjectMessage to TextMessage containing XML, etc. Return null or original message if no change. |
| CancellationToken |
stoppingToken |
A delegate that a client can register that will be called to preprocess messages allowing the client to modify message properties and/or transform a message from one type to another, StreamMessage to TextMessage, ObjectMessage to TextMessage containing XML, etc. Return null or original message if no change. |
Returns
| Type |
Description |
| Task<IMessage> |
A delegate that a client can register that will be called to preprocess messages allowing the client to modify message properties and/or transform a message from one type to another, StreamMessage to TextMessage, ObjectMessage to TextMessage containing XML, etc. Return null or original message if no change. |