Table of Contents

Interface IDeadLetterTransport

Namespace
AnyProtocol.Protocol.Abstraction
Assembly
AnyProtocol.Protocol.Abstraction.dll

Defines operations for dead letter transport.

public interface IDeadLetterTransport

Methods

SendToDeadLetterAsync(string, TransportEnvelope, Exception, CancellationToken)

Sends a failed message to the channel configured for dead-letter delivery.

ValueTask SendToDeadLetterAsync(string channel, TransportEnvelope envelope, Exception exception, CancellationToken cancellationToken = default)

Parameters

channel string

The logical message channel.

envelope TransportEnvelope

The transport envelope to process.

exception Exception

The error that caused the operation to fail.

cancellationToken CancellationToken

The token used to cancel the operation.

Returns

ValueTask

A task that represents the asynchronous operation.