Show / Hide Table of Contents

Interface IAcknowledgeConsumer

Represents a consumer that supports explicit acknowledge and negative acknowledge operations (e.g. ClientAcknowledge or IndividualAcknowledge modes).

Namespace: CodersRealm.NmsAmqpClient
Assembly: CodersRealm.NmsAmqpClient.dll
Syntax
public interface IAcknowledgeConsumer

Methods

AckAsync(IMessage)

Acknowledge the supplied message according to the consumer's acknowledgement mode.

Declaration
Task AckAsync(IMessage message)
Parameters
Type Name Description
IMessage message

The message to acknowledge.

Returns
Type Description
Task
Exceptions
Type Condition
InvalidOperationException

Thrown when the acknowledgement fails.

NackAsync()

Negatively acknowledge the last or current message depending on the configured mode.

Declaration
Task NackAsync()
Returns
Type Description
Task
Exceptions
Type Condition
InvalidOperationException

Thrown when the negative acknowledgement fails.

In this article
Back to top Generated by DocFX