IBotFrameworkHttpAdapter.ProcessAsync Method

Definition

This method can be called from inside a POST method on any Controller implementation.

public System.Threading.Tasks.Task ProcessAsync (System.Net.Http.HttpRequestMessage httpRequest, System.Net.Http.HttpResponseMessage httpResponse, Microsoft.Bot.Builder.IBot bot, System.Threading.CancellationToken cancellationToken = default);
abstract member ProcessAsync : System.Net.Http.HttpRequestMessage * System.Net.Http.HttpResponseMessage * Microsoft.Bot.Builder.IBot * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ProcessAsync (httpRequest As HttpRequestMessage, httpResponse As HttpResponseMessage, bot As IBot, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

httpRequest
HttpRequestMessage

The HTTP request object, typically in a POST handler by a Controller.

httpResponse
HttpResponseMessage

The HTTP response object.

bot
IBot

The bot implementation.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Applies to