Class Message
Default implementation of IMessage.
Holds a payload Body and a dictionary of Headers.
public class Message : IMessage
Inheritance
Implements
Properties
Attachments
Attachments of this message (Apache Camel's AttachmentMessage): named content beside the body, such as the
public IMessageAttachments Attachments { get; }
ContentType
MIME content type of the message body (e.g. "application/json").
public string? ContentType { get; set; }
Headers
Headers that travel with the message (ContentType, CorrelationId, custom).
public IDictionary<string, object?> Headers { get; }
Methods
Clone()
Structural copy of the message. Headers get a new dictionary, but the
public IMessage Clone()
Constructors
Message()
Creates an empty message.
Message(object?)
Creates a message with the specified body.