Table of Contents

Interface IAsyncMessageHandler

Namespace
Steeltoe.Messaging
Assembly
Steeltoe.Messaging.Abstractions.dll

Simple contract for handling a Message

public interface IAsyncMessageHandler

Methods

HandleMessage(IMessage, CancellationToken)

Handle the given method

Task HandleMessage(IMessage message, CancellationToken cancellationToken = default)

Parameters

message IMessage

the message to process

cancellationToken CancellationToken

token used to signal cancelation

Returns

Task

a task to signal completion