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
Methods
CallAsync(CarrotMessage, ConsumerContext, CancellationToken)
Handles the incoming CarrotMQ message.
Task CallAsync(CarrotMessage message, ConsumerContext consumerContext, CancellationToken cancellationToken)
Parameters
messageCarrotMessageThe CarrotMQ message to be processed.
consumerContextConsumerContextThe consumer context.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
A task representing the asynchronous operation.