Taal

IAdapterIntegration.ProcessActivityAsync Methode

Definitie

Hiermee maakt u een turncontext en voert u de middleware-pijplijn uit voor een binnenkomende activiteit.

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

De HTTP-authenticatieheader van het verzoek.

activity
Activity

De inkomende activiteit.

callback
BotCallbackHandler

De code die aan het einde van de middleware-pipeline van de adapter draait.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Een taak die het werk vertegenwoordigt dat in de wachtrij staat om uit te voeren. Als het activiteitstype 'Invoke' was en de bijbehorende sleutel (channelId + activityId) is gevonden, wordt een InvokeResponse teruggegeven, anders wordt null teruggegeven.

Van toepassing op