Delegate MessageProcessorAsync
Delegate invoked when a message is received from the message queue.
Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
public delegate Task MessageProcessorAsync(MessageReceivedContext e, CancellationToken stoppingToken)
Parameters
| Type | Name | Description |
|---|---|---|
| MessageReceivedContext | e | Event arguments containing the received message and related metadata. |
| CancellationToken | stoppingToken | A cancellation token that can be used to cancel processing. |
Returns
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |