AgentEndpointExtensions.ProcessRequestDelegate Delegate
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.
The delegate signature for custom AgentApplication request processing methods when specified in AgentInterfaceAttribute.ProcessDelegate.
public delegate System.Threading.Tasks.Task AgentEndpointExtensions.ProcessRequestDelegate(HttpRequest request, HttpResponse response, IAgentHttpAdapter adapter, IAgent agent, CancellationToken cancellationToken);
type AgentEndpointExtensions.ProcessRequestDelegate = delegate of HttpRequest * HttpResponse * IAgentHttpAdapter * IAgent * CancellationToken -> Task
Public Delegate Function AgentEndpointExtensions.ProcessRequestDelegate(request As HttpRequest, response As HttpResponse, adapter As IAgentHttpAdapter, agent As IAgent, cancellationToken As CancellationToken) As Task
Parameters
- request
- HttpRequest
The HTTP request object, typically in a POST handler by a Controller.
- response
- HttpResponse
The HTTP response object.
- adapter
- IAgentHttpAdapter
The IAgentHttpAdapter for this request.
- agent
- IAgent
The bot implementation.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.