IAgentHttpAdapter.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.
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
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 Agent 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.