Freigeben über


BotMessagePreviewSendHandler Delegate

Definition

Function for handling Message Extension botMessagePreview send events.

public delegate System.Threading.Tasks.Task BotMessagePreviewSendHandler(ITurnContext turnContext, ITurnState turnState, IActivity activityPreview, CancellationToken cancellationToken);
type BotMessagePreviewSendHandler = delegate of ITurnContext * ITurnState * IActivity * CancellationToken -> Task
Public Delegate Function BotMessagePreviewSendHandler(turnContext As ITurnContext, turnState As ITurnState, activityPreview As IActivity, cancellationToken As CancellationToken) As Task 

Parameters

turnContext
ITurnContext

A strongly-typed context object for this turn.

turnState
ITurnState

The turn state object that stores arbitrary data for this turn.

activityPreview
IActivity

The activity that's being previewed by the user.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value

A task that represents the work queued to execute.

Applies to