Table of Contents

Struct MessageDelivery

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

Focused value type grouping the delivery and transport-reliability metadata for a message.

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

Remarks

Composed onto MessageMetadata. Carries delivery counters, dead-letter details, priority, durability and duplicate-detection fields. Holds at most ten properties to satisfy the Microsoft-first focused-value-type design guideline.

Properties

DeadLetterErrorDescription

Gets the detailed error description for dead letter messages.

public string? DeadLetterErrorDescription { get; init; }

Property Value

string

The dead letter error description or null.

DeadLetterQueue

Gets the name of the dead letter queue for failed messages.

public string? DeadLetterQueue { get; init; }

Property Value

string

The dead letter queue name or null.

DeadLetterReason

Gets the reason why the message was sent to the dead letter queue.

public string? DeadLetterReason { get; init; }

Property Value

string

The dead letter reason or null.

DeliveryCount

Gets the number of delivery attempts for the message.

public int DeliveryCount { get; init; }

Property Value

int

The delivery attempt count.

DuplicateDetectionWindow

Gets the time window for duplicate detection.

public TimeSpan? DuplicateDetectionWindow { get; init; }

Property Value

TimeSpan?

The duplicate detection window or null.

Durable

Gets a value indicating whether the message is durable and should survive broker restarts.

public bool? Durable { get; init; }

Property Value

bool?

true if durable; false if not; null if unspecified.

LastDeliveryError

Gets the error message from the last delivery attempt.

public string? LastDeliveryError { get; init; }

Property Value

string

The last delivery error or null.

MaxDeliveryCount

Gets the maximum number of delivery attempts allowed.

public int? MaxDeliveryCount { get; init; }

Property Value

int?

The maximum delivery count or null.

Priority

Gets the priority level of the message.

public int? Priority { get; init; }

Property Value

int?

The priority level or null.

RequiresDuplicateDetection

Gets a value indicating whether the message requires duplicate detection.

public bool? RequiresDuplicateDetection { get; init; }

Property Value

bool?

true if duplicate detection is required; false if not; null if unspecified.