Language

EventActivityHandler Delegate

Definition

Delegate for handling any event activity.

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

Parameters

context
Context<EventActivity>

The context for the event activity, providing access to the activity data and bot application.

cancellationToken
CancellationToken

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

Return Value

A task representing the asynchronous operation.

Applies to