CloudAdapter.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.
This method can be called from inside a POST method on any Controller implementation. If the activity is Not an Invoke, and DeliveryMode is Not ExpectReplies, and this is not a GET request to upgrade to WebSockets, then the activity will be enqueued for processing on a background thread.
public System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Http.HttpRequest httpRequest, Microsoft.AspNetCore.Http.HttpResponse httpResponse, Microsoft.Agents.Builder.IAgent agent, System.Threading.CancellationToken cancellationToken = default);
abstract member ProcessAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Agents.Builder.IAgent * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ProcessAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Agents.Builder.IAgent * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ProcessAsync (httpRequest As HttpRequest, httpResponse As HttpResponse, agent As IAgent, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- httpRequest
- HttpRequest
The HTTP request object, typically in a POST handler by a Controller.
- httpResponse
- HttpResponse
The HTTP response object.
- agent
- IAgent
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.
Implements
Remarks
Note, this is an ImmediateAccept and BackgroundProcessing override of: Task IAgentHttpAdapter.ProcessAsync(HttpRequest httpRequest, HttpResponse httpResponse, IAgent agent, CancellationToken cancellationToken = default);