Class TransportMessageSnapshot
Transport-agnostic snapshot of a message as it appears on the wire. For the Sent stage, this captures the state after envelope mapping (outgoing). For the Received stage, this captures the state before envelope mapping (incoming).
public class TransportMessageSnapshot
- Inheritance
-
TransportMessageSnapshot
- Inherited Members
Properties
- Body
The raw body bytes as they appear on the wire. In structured CloudEvents mode, this is the full JSON envelope. In binary mode, this is the serialized message payload.
- Headers
Transport-level headers/properties flattened into a dictionary. For AMQP: includes standard properties (content-type, message-id, type, app-id, timestamp, delivery-mode) merged with custom headers. Byte array values from the transport are converted to UTF-8 strings for ergonomic assertions.
- Metadata
Transport-specific delivery/routing metadata that is not part of the message headers. For AMQP outgoing: exchange, routing-key. For AMQP incoming: exchange, routing-key, redelivered.
- TransportName
The transport name the message is sent over.