Table of Contents

Struct MessageRouting

Namespace
Excalibur.Dispatch.Metadata
Assembly
Excalibur.Dispatch.dll

Focused value type grouping the routing and addressing metadata for a message.

public readonly record struct MessageRouting : IEquatable<MessageRouting>
Implements
Inherited Members
Extension Methods

Remarks

Composed onto MessageMetadata. Carries destination, reply, session, partition, routing-key and grouping fields. Holds at most ten properties to satisfy the Microsoft-first focused-value-type design guideline.

Properties

Destination

Gets the destination for the message.

public string? Destination { get; init; }

Property Value

string

The destination or null.

GroupId

Gets the group identifier for message grouping.

public string? GroupId { get; init; }

Property Value

string

The group identifier or null.

GroupSequence

Gets the sequence number within the message group.

public long? GroupSequence { get; init; }

Property Value

long?

The group sequence number or null.

PartitionKey

Gets the partition key for message distribution.

public string? PartitionKey { get; init; }

Property Value

string

The partition key or null.

ReplyTo

Gets the reply-to address for the message.

public string? ReplyTo { get; init; }

Property Value

string

The reply-to address or null.

RoutingKey

Gets the routing key for message routing decisions.

public string? RoutingKey { get; init; }

Property Value

string

The routing key or null.

SessionId

Gets the session identifier for the message.

public string? SessionId { get; init; }

Property Value

string

The session identifier or null.