Table of Contents

Class DeadLetterRecord

Namespace
Excalibur.Outbox.Postgres
Assembly
Excalibur.Outbox.Postgres.dll

Represents a record from the dead letter table.

public sealed class DeadLetterRecord
Inheritance
DeadLetterRecord
Inherited Members

Properties

Attempts

Gets or sets the number of delivery attempts.

public int Attempts { get; set; }

Property Value

int

ErrorMessage

Gets or sets the error message from the last failure.

public string? ErrorMessage { get; set; }

Property Value

string

MessageBody

Gets or sets the serialized message body as raw bytes.

public byte[] MessageBody { get; set; }

Property Value

byte[]

MessageId

Gets or sets the message identifier.

public string MessageId { get; set; }

Property Value

string

MessageMetadata

Gets or sets the message metadata.

public string MessageMetadata { get; set; }

Property Value

string

MessageType

Gets or sets the message type.

public string MessageType { get; set; }

Property Value

string

OccurredOn

Gets or sets when the message was created.

public DateTimeOffset OccurredOn { get; set; }

Property Value

DateTimeOffset

TenantId

Gets or sets the tenant the message originated in, carried as provenance so a replay re-enters the same tenant.

public string TenantId { get; set; }

Property Value

string

The originating tenant. A message that was staged without a tenant carries the reserved untenanted key rather than an empty or absent value, so this is never null for a row written by a current version of the store.

Remarks

Rows written before the dead-letter table carried a tenant column read back as the reserved untenanted key after the upgrade script runs, because their originating tenant was never recorded and cannot be recovered — the move deletes the source row. Treat this value as attribution only for entries created after that upgrade.