Class CarrotMessage
Represents a message sent with CarrotMQ.
public sealed class CarrotMessage
- Inheritance
-
CarrotMessage
- Inherited Members
- Extension Methods
Constructors
CarrotMessage()
Initializes a new instance of the CarrotMessage class with default values.
public CarrotMessage()
CarrotMessage(CarrotHeader, string)
Initializes a new instance of the CarrotMessage class with the specified header and message payload.
public CarrotMessage(CarrotHeader header, string payload)
Parameters
headerCarrotHeaderThe header associated with the message.
payloadstringThe payload of the message.
Properties
Header
Header of the message.
public CarrotHeader Header { get; set; }
Property Value
Payload
Payload of the message.
public string? Payload { get; set; }