次の方法で共有


AgentEndpointExtensions.MapAgentApplicationEndpoints Method

Definition

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

requireAuth
Boolean
defaultPath
String

Returns

Exceptions

Applies to