Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.AspNetCore.dll Namespace: Microsoft.OData.Mcp.AspNetCore.Routing Inheritance: System.Object

Syntax

Summary

Automatically adds MCP endpoints to OData routes during registration.

Remarks

This convention ensures that for each OData route registered, corresponding MCP endpoints are automatically created as siblings to the $metadata endpoint.

Constructors

.ctor

Initializes a new instance of the ODataMcpRouteConvention class.

Syntax

Parameters

Exceptions

.ctor Inherited

Inherited from object

Syntax

Methods

ApplyConvention

Applies MCP conventions to the endpoint route builder.

Syntax

Parameters

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?
  • Microsoft.OData.Mcp.AspNetCore.Routing.IMcpRouteConvention