AgentEndpointExtensions.ProcessRequestDelegate<TAdapter,TAgent> 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.
Represents an asynchronous method that processes an HTTP request using the specified adapter and agent.
public delegate System.Threading.Tasks.Task AgentEndpointExtensions.ProcessRequestDelegate<TAdapter,TAgent>(HttpRequest request, HttpResponse response, TAdapter adapter, TAgent agent, CancellationToken cancellationToken) where TAdapter : IAgentHttpAdapter where TAgent : IAgent;
type AgentEndpointExtensions.ProcessRequestDelegate<'Adapter, 'Agent (requires 'Adapter :> IAgentHttpAdapter and 'Agent :> IAgent)> = delegate of HttpRequest * HttpResponse * 'Adapter * 'Agent * CancellationToken -> Task
Public Delegate Function AgentEndpointExtensions.ProcessRequestDelegate(Of TAdapter, TAgent)(request As HttpRequest, response As HttpResponse, adapter As TAdapter, agent As TAgent, cancellationToken As CancellationToken) As Task
Type Parameters
- TAdapter
The type of the HTTP adapter used to handle the request. Must implement IAgentHttpAdapter.
- TAgent
The type of the agent that processes the request. Must implement IAgent.
Parameters
- request
- HttpRequest
The HTTP request to be processed.
- response
- HttpResponse
The HTTP response to be sent.
- adapter
- TAdapter
The adapter instance used to facilitate communication between the HTTP layer and the agent.
- agent
- TAgent
The agent instance responsible for handling the request logic.
- cancellationToken
- CancellationToken
A cancellation token that can be used to cancel the operation.
Return Value
A task that represents the asynchronous operation.