Jaa


IAdapterIntegration.ProcessActivityAsync Method

Definition

Creates a turn context and runs the middleware pipeline for an incoming activity.

public System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse> ProcessActivityAsync (string authHeader, Microsoft.Bot.Schema.Activity activity, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ProcessActivityAsync : string * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
Public Function ProcessActivityAsync (authHeader As String, activity As Activity, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task(Of InvokeResponse)

Parameters

authHeader
String

The HTTP authentication header of the request.

activity
Activity

The incoming activity.

callback
BotCallbackHandler

The code to run at the end of the adapter's middleware pipeline.

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. If the activity type was 'Invoke' and the corresponding key (channelId + activityId) was found then an InvokeResponse is returned, otherwise null is returned.

Applies to