Table of Contents

Class DeadLetterMessage

Namespace
Excalibur.Dispatch.Transport
Assembly
Excalibur.Dispatch.Transport.Abstractions.dll

Represents a message in the dead letter queue.

public sealed class DeadLetterMessage
Inheritance
DeadLetterMessage
Inherited Members
Extension Methods

Properties

DeadLetteredAt

Gets or sets when the message was dead lettered.

public DateTimeOffset DeadLetteredAt { get; set; }

Property Value

DateTimeOffset

The current DeadLetteredAt value.

DeliveryAttempts

Gets or sets the number of delivery attempts.

public int DeliveryAttempts { get; set; }

Property Value

int

The current DeliveryAttempts value.

Exception

Gets or sets the exception that caused the failure.

public Exception? Exception { get; set; }

Property Value

Exception

The current Exception value.

Metadata

Gets additional metadata.

public Dictionary<string, string> Metadata { get; init; }

Property Value

Dictionary<string, string>

The current Metadata value.

OriginalContext

Gets or sets the original message context.

public IMessageContext? OriginalContext { get; set; }

Property Value

IMessageContext

The current OriginalContext value.

OriginalEnvelope

Gets or sets the original message envelope (needed for acknowledgment).

[JsonIgnore]
public MessageEnvelope? OriginalEnvelope { get; set; }

Property Value

MessageEnvelope

The current OriginalEnvelope value.

Remarks

This property is excluded from JSON serialization because MessageEnvelope contains runtime-only data (IValidationResult, IAuthorizationResult, IRouteResult) that should not be persisted.

OriginalMessage

Gets or sets the original message.

public TransportMessage OriginalMessage { get; set; }

Property Value

TransportMessage

The current OriginalMessage value.

OriginalSource

Gets or sets the original source queue/topic.

public string? OriginalSource { get; set; }

Property Value

string

The current OriginalSource value.

Reason

Gets or sets the reason for dead lettering.

public string Reason { get; set; }

Property Value

string

The current Reason value.