Table of Contents

Interface IMessageChannelAcknowledger<TMessage>

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

Defines the acknowledgement contract for a message channel.

public interface IMessageChannelAcknowledger<TMessage> where TMessage : class

Type Parameters

TMessage

The type of message handled by the channel.

Extension Methods

Methods

AcknowledgeAsync(TMessage, CancellationToken)

Acknowledges successful processing of a message.

Task AcknowledgeAsync(TMessage message, CancellationToken cancellationToken)

Parameters

message TMessage

The message to acknowledge.

cancellationToken CancellationToken

A cancellation token to cancel the operation.

Returns

Task

A task that represents the asynchronous acknowledge operation.

RejectAsync(TMessage, string, CancellationToken)

Rejects a message, potentially moving it to a dead letter queue.

Task RejectAsync(TMessage message, string reason, CancellationToken cancellationToken)

Parameters

message TMessage

The message to reject.

reason string

The reason for rejection.

cancellationToken CancellationToken

A cancellation token to cancel the operation.

Returns

Task

A task that represents the asynchronous reject operation.