Skip to main content

Definition

Assembly: Microsoft.AspNetCore.Routing.dll Namespace: Microsoft.AspNetCore.Routing

Syntax

Microsoft.AspNetCore.Routing.IEndpointRouteBuilder

Summary

This type is defined in Microsoft.AspNetCore.Routing.

Remarks

See Microsoft documentation for more information about the rest of the API.

Methods

AddMcpForODataRoute Extension

Extension method from Microsoft.AspNetCore.Routing.ODataMcp_AspNetCore_RouteBuilderExtensions
Adds MCP endpoints to an endpoint route builder for a specific OData route.

Syntax

public static Microsoft.AspNetCore.Routing.IEndpointRouteBuilder AddMcpForODataRoute(Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpointRouteBuilder, string routeName, string routePrefix, string customMcpPath = null)

Parameters

NameTypeDescription
endpointRouteBuilderMicrosoft.AspNetCore.Routing.IEndpointRouteBuilderThe endpoint route builder.
routeNamestringThe OData route name.
routePrefixstringThe OData route prefix.
customMcpPathstring?Optional custom MCP path.

Returns

Type: Microsoft.AspNetCore.Routing.IEndpointRouteBuilder The endpoint route builder for chaining.