AgentEndpointExtensions.MapAgentEndpoints 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.
Overloads
| Name | Description |
|---|---|
| MapAgentEndpoints(WebApplication, Boolean, String, AgentEndpointExtensions.ProcessRequestDelegate<IAgentHttpAdapter,IAgent>) |
Maps Agent Activity Protocol endpoints. |
| MapAgentEndpoints<TAdapter,TAgent>(WebApplication, Boolean, String, AgentEndpointExtensions.ProcessRequestDelegate<TAdapter,TAgent>) |
Maps Agent Activity Protocol endpoints. |
| MapAgentEndpoints<TAgent>(WebApplication, Boolean, String, AgentEndpointExtensions.ProcessRequestDelegate<IAgentHttpAdapter,TAgent>) |
Maps Agent Activity Protocol endpoints. |
MapAgentEndpoints(WebApplication, Boolean, String, AgentEndpointExtensions.ProcessRequestDelegate<IAgentHttpAdapter,IAgent>)
Maps Agent Activity Protocol endpoints.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapAgentEndpoints(this Microsoft.AspNetCore.Builder.WebApplication app, bool requireAuth = true, string path = "/api/messages", Microsoft.Agents.Hosting.AspNetCore.AgentEndpointExtensions.ProcessRequestDelegate<Microsoft.Agents.Hosting.AspNetCore.IAgentHttpAdapter,Microsoft.Agents.Builder.IAgent> process = default);
static member MapAgentEndpoints : Microsoft.AspNetCore.Builder.WebApplication * bool * string * Microsoft.Agents.Hosting.AspNetCore.AgentEndpointExtensions.ProcessRequestDelegate<Microsoft.Agents.Hosting.AspNetCore.IAgentHttpAdapter, Microsoft.Agents.Builder.IAgent> -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapAgentEndpoints (app As WebApplication, Optional requireAuth As Boolean = true, Optional path As String = "/api/messages", Optional process As AgentEndpointExtensions.ProcessRequestDelegate(Of IAgentHttpAdapter, IAgent) = Nothing) As IEndpointConventionBuilder
Parameters
- app
- WebApplication
- requireAuth
- Boolean
Defaults to true. Use false to allow anonymous requests (recommended for Development only)
- path
- String
Optional: Indicate the route pattern, defaults to "/api/messages"
Optional: Action to handle request processing. Defaults to IAgentHttpAdapter.ProcessAsync.
Returns
Returns a builder for configuring additional endpoint conventions like authorization policies.
Applies to
MapAgentEndpoints<TAdapter,TAgent>(WebApplication, Boolean, String, AgentEndpointExtensions.ProcessRequestDelegate<TAdapter,TAgent>)
Maps Agent Activity Protocol endpoints.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapAgentEndpoints<TAdapter,TAgent>(this Microsoft.AspNetCore.Builder.WebApplication app, bool requireAuth = true, string path = "/api/messages", Microsoft.Agents.Hosting.AspNetCore.AgentEndpointExtensions.ProcessRequestDelegate<TAdapter,TAgent> process = default) where TAdapter : Microsoft.Agents.Hosting.AspNetCore.IAgentHttpAdapter where TAgent : Microsoft.Agents.Builder.IAgent;
static member MapAgentEndpoints : Microsoft.AspNetCore.Builder.WebApplication * bool * string * Microsoft.Agents.Hosting.AspNetCore.AgentEndpointExtensions.ProcessRequestDelegate<'Adapter, 'Agent (requires 'Adapter :> Microsoft.Agents.Hosting.AspNetCore.IAgentHttpAdapter and 'Agent :> Microsoft.Agents.Builder.IAgent)> -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder (requires 'Adapter :> Microsoft.Agents.Hosting.AspNetCore.IAgentHttpAdapter and 'Agent :> Microsoft.Agents.Builder.IAgent)
<Extension()>
Public Function MapAgentEndpoints(Of TAdapter As IAgentHttpAdapter, TAgent As IAgentHttpAdapter) (app As WebApplication, Optional requireAuth As Boolean = true, Optional path As String = "/api/messages", Optional process As AgentEndpointExtensions.ProcessRequestDelegate(Of TAdapter, TAgent) = Nothing) As IEndpointConventionBuilder
Type Parameters
- TAdapter
- TAgent
Parameters
- app
- WebApplication
- requireAuth
- Boolean
Defaults to true. Use false to allow anonymous requests (recommended for Development only)
- path
- String
Optional: Indicate the route pattern, defaults to "/api/messages"
Optional: Action to handle request processing. Defaults to IAgentHttpAdapter.ProcessAsync.
Returns
Returns a builder for configuring additional endpoint conventions like authorization policies.
Applies to
MapAgentEndpoints<TAgent>(WebApplication, Boolean, String, AgentEndpointExtensions.ProcessRequestDelegate<IAgentHttpAdapter,TAgent>)
Maps Agent Activity Protocol endpoints.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapAgentEndpoints<TAgent>(this Microsoft.AspNetCore.Builder.WebApplication app, bool requireAuth = true, string path = "/api/messages", Microsoft.Agents.Hosting.AspNetCore.AgentEndpointExtensions.ProcessRequestDelegate<Microsoft.Agents.Hosting.AspNetCore.IAgentHttpAdapter,TAgent> process = default) where TAgent : Microsoft.Agents.Builder.IAgent;
static member MapAgentEndpoints : Microsoft.AspNetCore.Builder.WebApplication * bool * string * Microsoft.Agents.Hosting.AspNetCore.AgentEndpointExtensions.ProcessRequestDelegate<Microsoft.Agents.Hosting.AspNetCore.IAgentHttpAdapter, 'Agent (requires 'Agent :> Microsoft.Agents.Builder.IAgent)> -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder (requires 'Agent :> Microsoft.Agents.Builder.IAgent)
<Extension()>
Public Function MapAgentEndpoints(Of TAgent As IAgent) (app As WebApplication, Optional requireAuth As Boolean = true, Optional path As String = "/api/messages", Optional process As AgentEndpointExtensions.ProcessRequestDelegate(Of IAgentHttpAdapter, TAgent) = Nothing) As IEndpointConventionBuilder
Type Parameters
- TAgent
Parameters
- app
- WebApplication
- requireAuth
- Boolean
Defaults to true. Use false to allow anonymous requests (recommended for Development only)
- path
- String
Optional: Indicate the route pattern, defaults to "/api/messages"
- process
- AgentEndpointExtensions.ProcessRequestDelegate<IAgentHttpAdapter,TAgent>
Optional: Action to handle request processing. Defaults to IAgentHttpAdapter.ProcessAsync.
Returns
Returns a builder for configuring additional endpoint conventions like authorization policies.