Language

MessageHandler Delegate

Definition

Delegate for handling message activities.

public delegate System.Threading.Tasks.Task MessageHandler(Context<MessageActivity> context, CancellationToken cancellationToken = default);
type MessageHandler = delegate of Context<MessageActivity> * CancellationToken -> Task
Public Delegate Function MessageHandler(context As Context(Of MessageActivity), Optional cancellationToken As CancellationToken = Nothing) As Task 

Parameters

context
Context<MessageActivity>

The context for the message activity.

cancellationToken
CancellationToken

A cancellation token that can be used to cancel the operation.

Return Value

A task representing the asynchronous operation.

Applies to