Skip to main content

Definition

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

Syntax

Microsoft.OData.Mcp.AspNetCore.Routing.IMcpRouteConvention

Summary

Defines a contract for applying MCP conventions to OData routes.

Methods

ApplyConvention Abstract

Applies MCP conventions to the endpoint route builder.

Syntax

void ApplyConvention(Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpointRouteBuilder, string routePrefix, string routeName)

Parameters

NameTypeDescription
endpointRouteBuilderMicrosoft.AspNetCore.Routing.IEndpointRouteBuilderThe endpoint route builder.
routePrefixstringThe OData route prefix.
routeNamestringThe OData route name.