Table of Contents

Class CarrotMessage

Namespace
CarrotMQ.Core.Protocol
Assembly
CarrotMQ.Core.dll

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

header CarrotHeader

The header associated with the message.

payload string

The payload of the message.

Properties

Header

Header of the message.

public CarrotHeader Header { get; set; }

Property Value

CarrotHeader

Payload

Payload of the message.

public string? Payload { get; set; }

Property Value

string