EventActivityHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.