Jaa


MiddlewareSet.ReceiveActivityWithStatusAsync Method

Definition

Processes an activity.

public System.Threading.Tasks.Task ReceiveActivityWithStatusAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
member this.ReceiveActivityWithStatusAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReceiveActivityWithStatusAsync (turnContext As ITurnContext, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task

Parameters

turnContext
ITurnContext

The context object for the turn.

callback
BotCallbackHandler

The delegate to call when the set finishes processing the activity.

cancellationToken
CancellationToken

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

Returns

A task that represents the work queued to execute.

Applies to