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
channelstringThe logical message channel.
envelopeTransportEnvelopeThe transport envelope to process.
exceptionExceptionThe error that caused the operation to fail.
cancellationTokenCancellationTokenThe token used to cancel the operation.
Returns
- ValueTask
A task that represents the asynchronous operation.