Table of Contents

Interface IAsyncMessageHandler

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

Simple contract for handling a Message

[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
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