Freigeben über


CloudAdapterBase.ProcessActivityAsync Methode

Definition

Überlädt

ProcessActivityAsync(AuthenticateRequestResult, Activity, BotCallbackHandler, CancellationToken)

Die Implementierung für die Verarbeitung einer Aktivität, die an diesen Bot gesendet wird.

ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken)

Die Implementierung für die Verarbeitung einer Aktivität, die an diesen Bot gesendet wird.

ProcessActivityAsync(AuthenticateRequestResult, Activity, BotCallbackHandler, CancellationToken)

Die Implementierung für die Verarbeitung einer Aktivität, die an diesen Bot gesendet wird.

protected System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse> ProcessActivityAsync (Microsoft.Bot.Connector.Authentication.AuthenticateRequestResult authenticateRequestResult, Microsoft.Bot.Schema.Activity activity, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ProcessActivityAsync : Microsoft.Bot.Connector.Authentication.AuthenticateRequestResult * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
Protected Function ProcessActivityAsync (authenticateRequestResult As AuthenticateRequestResult, activity As Activity, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task(Of InvokeResponse)

Parameter

authenticateRequestResult
AuthenticateRequestResult

Die Authentifizierungsergebnisse für diesen Turn.

activity
Activity

Der zu verarbeitende Activity.

callback
BotCallbackHandler

Die Methode, die für den resultierenden Bot turn aufgerufen werden soll.

cancellationToken
CancellationToken

Abbruchtoken.

Gibt zurück

Eine Aufgabe, die die auszuführende Arbeit in der Warteschlange darstellt. Enthält invokeResponse, falls vorhanden.

Gilt für:

ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken)

Die Implementierung für die Verarbeitung einer Aktivität, die an diesen Bot gesendet wird.

protected 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);
override this.ProcessActivityAsync : string * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
Protected Function ProcessActivityAsync (authHeader As String, activity As Activity, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task(Of InvokeResponse)

Parameter

authHeader
String

Der Autorisierungsheader aus der HTTP-Anforderung.

activity
Activity

Der zu verarbeitende Activity.

callback
BotCallbackHandler

Die Methode, die für den resultierenden Bot turn aufgerufen werden soll.

cancellationToken
CancellationToken

Abbruchtoken.

Gibt zurück

Eine Aufgabe, die die auszuführende Arbeit in der Warteschlange darstellt. Enthält invokeResponse, falls vorhanden.

Gilt für: