AgentEndpointExtensions.MapAgentApplicationEndpoints 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 adds HTTP endpoints for all AgentApplications defined in the calling assembly. Each AgentApplication must have been added using AddAgent<TAgent>(IHostApplicationBuilder).
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapAgentApplicationEndpoints(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, bool requireAuth = true, string defaultPath = "/api/messages");
static member MapAgentApplicationEndpoints : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * bool * string -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapAgentApplicationEndpoints (endpoints As IEndpointRouteBuilder, Optional requireAuth As Boolean = true, Optional defaultPath As String = "/api/messages") As IEndpointConventionBuilder
Parameters
- endpoints
- IEndpointRouteBuilder
- requireAuth
- Boolean
- defaultPath
- String