Table of Contents

Interface IMessageCallback

Namespace
CarrotMQ.Core.MessageProcessing
Assembly
CarrotMQ.Core.dll

Interface for handling CarrotMQ messages with callback functions.

public interface IMessageCallback

Properties

MessageType

The type of the message that is handled by the callback

Type MessageType { get; }

Property Value

Type

Methods

CallAsync(CarrotMessage, ConsumerContext, CancellationToken)

Handles the incoming CarrotMQ message.

Task CallAsync(CarrotMessage message, ConsumerContext consumerContext, CancellationToken cancellationToken)

Parameters

message CarrotMessage

The CarrotMQ message to be processed.

consumerContext ConsumerContext

The consumer context.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A task representing the asynchronous operation.