Show / Hide Table of Contents

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.

Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
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.
In this article
Back to top Generated by DocFX