Share via


CloudAdapter.ProcessAsync Method

Definition

Process the inbound HTTP request with the bot resulting in the outbound http response, this method can be called directly from a Controller. If the HTTP method is a POST the body will contain the Activity to process.

public System.Threading.Tasks.Task ProcessAsync (Microsoft.AspNetCore.Http.HttpRequest httpRequest, Microsoft.AspNetCore.Http.HttpResponse httpResponse, Microsoft.Bot.Builder.IBot bot, System.Threading.CancellationToken cancellationToken = default);
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 (httpRequest As HttpRequest, httpResponse As HttpResponse, bot As IBot, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

httpRequest
HttpRequest

The HttpRequest.

httpResponse
HttpResponse

The HttpResponse.

bot
IBot

The IBot implementation to use for this request.

cancellationToken
CancellationToken

Cancellation token.

Returns

A Task that represents the work queued to execute.

Implements

Applies to