Struct MessageDelivery
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
DeadLetterQueue
Gets the name of the dead letter queue for failed messages.
public string? DeadLetterQueue { get; init; }
Property Value
DeadLetterReason
Gets the reason why the message was sent to the dead letter queue.
public string? DeadLetterReason { get; init; }
Property Value
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
Durable
Gets a value indicating whether the message is durable and should survive broker restarts.
public bool? Durable { get; init; }
Property Value
LastDeliveryError
Gets the error message from the last delivery attempt.
public string? LastDeliveryError { get; init; }
Property Value
MaxDeliveryCount
Gets the maximum number of delivery attempts allowed.
public int? MaxDeliveryCount { get; init; }
Property Value
Priority
Gets the priority level of the message.
public int? Priority { get; init; }
Property Value
RequiresDuplicateDetection
Gets a value indicating whether the message requires duplicate detection.
public bool? RequiresDuplicateDetection { get; init; }