ภาษา

AgentEndpointExtensions.MapAgentRootEndpoint(IEndpointRouteBuilder) Method

Definition

Maps the root endpoint ('/') of the web application to return the assembly name and version information for the Microsoft Agents SDK.

public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapAgentRootEndpoint(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints);
static member MapAgentRootEndpoint : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapAgentRootEndpoint (endpoints As IEndpointRouteBuilder) As IEndpointConventionBuilder

Parameters

endpoints
IEndpointRouteBuilder

The endpoint route builder (e.g. the WebApplication) to which the root endpoint will be mapped.

Returns

Remarks

The root endpoint provides a simple informational response containing the name and version of the calling assembly. This can be useful for diagnostics or verifying deployment details.

Applies to