CloudAdapterBase.ProcessActivityAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ProcessActivityAsync(AuthenticateRequestResult, Activity, BotCallbackHandler, CancellationToken) |
The implementation for processing an Activity sent to this bot. |
ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken) |
The implementation for processing an Activity sent to this bot. |
ProcessActivityAsync(AuthenticateRequestResult, Activity, BotCallbackHandler, CancellationToken)
The implementation for processing an Activity sent to this 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)
Parameters
- authenticateRequestResult
- AuthenticateRequestResult
The authentication results for this turn.
- callback
- BotCallbackHandler
The method to call for the resulting bot turn.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A task that represents the work queued to execute. Containing the InvokeResponse if there is one.
Applies to
ProcessActivityAsync(String, Activity, BotCallbackHandler, CancellationToken)
The implementation for processing an Activity sent to this 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)
Parameters
- authHeader
- String
The authorization header from the http request.
- callback
- BotCallbackHandler
The method to call for the resulting bot turn.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A task that represents the work queued to execute. Containing the InvokeResponse if there is one.