WebexAdapter.ProcessAsync 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.
Accept an incoming webhook HttpRequest and convert it into a TurnContext which can be processed by the bot's logic.
public System.Threading.Tasks.Task ProcessAsync (Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Bot.Builder.IBot bot, System.Threading.CancellationToken cancellationToken);
abstract member ProcessAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Bot.Builder.IBot * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ProcessAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Bot.Builder.IBot * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ProcessAsync (request As HttpRequest, response As HttpResponse, bot As IBot, cancellationToken As CancellationToken) As Task
Parameters
- request
- HttpRequest
The incoming HttpRequest.
- response
- HttpResponse
When this method completes, the HttpResponse to send.
- bot
- IBot
The bot that will handle the incoming activity.
- cancellationToken
- CancellationToken
A cancellation token for the task.
Returns
A Task representing the asynchronous operation.