Table of Contents

Class CarrotHeader

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

Represents the headers associated with a CarrotMQ message.

public sealed class CarrotHeader
Inheritance
CarrotHeader
Inherited Members

Constructors

CarrotHeader()

public CarrotHeader()

Properties

CalledMethod

Called method for this message (used to determine which handler will be executed when receiving the message).

public string CalledMethod { get; set; }

Property Value

string

CorrelationId

AMQP correlation-id: Application correlation identifier.

public Guid? CorrelationId { get; set; }

Property Value

Guid?

CreatedAt

Timestamp indicating when the message was created.

public DateTimeOffset CreatedAt { get; set; }

Property Value

DateTimeOffset

CustomHeader

Optional headers in the form of a Dictionary<TKey, TValue> whose generic type argument is string.

public IDictionary<string, string>? CustomHeader { get; set; }

Property Value

IDictionary<string, string>

Exchange

Exchange where the message is sent to.

public string Exchange { get; set; }

Property Value

string

IncludeRequestPayloadInResponse

Flag indicating whether to include the request payload in the response.

public bool IncludeRequestPayloadInResponse { get; set; }

Property Value

bool

InitialServiceName

Name of the service or application sending the initial message.
Set with InitialServiceName

public string? InitialServiceName { get; set; }

Property Value

string

InitialUserName

Name of the user sending the initial message.
Set with InitialUserName.

public string? InitialUserName { get; set; }

Property Value

string

MessageId

AMQP message-id: Application message identifier.

public Guid MessageId { get; set; }

Property Value

Guid

MessageProperties

Gets or sets the message properties. The default is Default

public MessageProperties MessageProperties { get; set; }

Property Value

MessageProperties

ReplyExchange

Exchange to which a reply should be sent.

public string ReplyExchange { get; set; }

Property Value

string

ReplyRoutingKey

Routing key which that should be used for the reply.

public string ReplyRoutingKey { get; set; }

Property Value

string

RoutingKey

Routing key for this message.

public string RoutingKey { get; set; }

Property Value

string

ServiceInstanceId

Unique ID identifying the service instance sending the message.

public Guid ServiceInstanceId { get; set; }

Property Value

Guid

ServiceName

Name of the service or application sending the message.

public string? ServiceName { get; set; }

Property Value

string

SpanId

OpenTelemetry span id. Format is based on a W3C standard.

public string? SpanId { get; set; }

Property Value

string

TraceId

OpenTelemetry trace id. Format is based on a W3C standard.

public string? TraceId { get; set; }

Property Value

string