Class CloudEventsAmqpMapper
Default implementation of IRabbitMqEnvelopeMapper that follows the CloudEvents AMQP protocol binding. See: https://github.com/cloudevents/spec/blob/main/cloudevents/bindings/amqp-protocol-binding.md
public class CloudEventsAmqpMapper : IRabbitMqEnvelopeMapper
- Inheritance
-
CloudEventsAmqpMapper
- Implements
- Inherited Members
Constructors
- CloudEventsAmqpMapper(CloudEventsOptions, ILogger<CloudEventsAmqpMapper>)
Default implementation of IRabbitMqEnvelopeMapper that follows the CloudEvents AMQP protocol binding. See: https://github.com/cloudevents/spec/blob/main/cloudevents/bindings/amqp-protocol-binding.md
Methods
- MapIncoming(BasicDeliverEventArgs)
Maps incoming RabbitMQ message to MessageProperties. Returns the body to deserialize (extracted from envelope for structured mode).
- MapOutgoing(byte[], MessageProperties, BasicProperties)
Maps outgoing message to RabbitMQ properties. Returns the body to send (might be wrapped for structured mode).