Interface IAsyncMessageHandler
Simple contract for handling a Message
Namespace: Steeltoe.Messaging
Assembly: Steeltoe.Messaging.Abstractions.dll
Syntax
public interface IAsyncMessageHandler
Methods
| Edit this page View SourceHandleMessage(IMessage, CancellationToken)
Handle the given method
Declaration
Task HandleMessage(IMessage message, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
IMessage | message | the message to process |
CancellationToken | cancellationToken | token used to signal cancelation |
Returns
Type | Description |
---|---|
Task | a task to signal completion |