Språk

CloudAdapterBase.ProcessActivityAsync Metod

Definition

Överlagringar

Name Description
ProcessActivityAsync(AuthenticateRequestResult, Activity, BotCallbackHandler, CancellationToken)

Implementeringen för att bearbeta en aktivitet skickad till denna bot.

ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken)

Implementeringen för att bearbeta en aktivitet skickad till denna bot.

ProcessActivityAsync(AuthenticateRequestResult, Activity, BotCallbackHandler, CancellationToken)

Implementeringen för att bearbeta en aktivitet skickad till denna bot.

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)

Parametrar

authenticateRequestResult
AuthenticateRequestResult

Autentiseringsresultaten för denna runda.

activity
Activity

Att Activity bearbeta.

callback
BotCallbackHandler

Metoden för att anropa den resulterande robotvändningen.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

En uppgift som representerar det arbete som ska köras i kö. Innehåller InvokeResponse om det finns en.

Gäller för

ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken)

Implementeringen för att bearbeta en aktivitet skickad till denna bot.

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)

Parametrar

authHeader
String

Auktoriseringsheadern från http-förfrågan.

activity
Activity

Att Activity bearbeta.

callback
BotCallbackHandler

Metoden för att anropa den resulterande robotvändningen.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

En uppgift som representerar det arbete som ska köras i kö. Innehåller InvokeResponse om det finns en.

Gäller för