Definition
Assembly: Microsoft.OData.Mcp.AspNetCore.dll Namespace: Microsoft.OData.Mcp.AspNetCore.Middleware Inheritance: System.ObjectSyntax
Summary
Middleware that handles MCP requests for OData routes.Constructors
.ctor
Initializes a new instance of the ODataMcpMiddleware class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
next | Microsoft.AspNetCore.Http.RequestDelegate | The next middleware in the pipeline. |
logger | Microsoft.Extensions.Logging.ILogger<Microsoft.OData.Mcp.AspNetCore.Middleware.ODataMcpMiddleware> | The logger. |
endpointRegistry | Microsoft.OData.Mcp.Core.Routing.IMcpEndpointRegistry | The MCP endpoint registry. |
toolFactory | Microsoft.OData.Mcp.Core.Tools.IMcpToolFactory | The tool factory. |
options | Microsoft.OData.Mcp.Core.ODataMcpOptions | The MCP options. |
.ctor Inherited
Inherited from
objectSyntax
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
InvokeAsync
Invokes the middleware.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
context | Microsoft.AspNetCore.Http.HttpContext | The HTTP context. |
Returns
Type:System.Threading.Tasks.Task
A task representing the asynchronous operation.
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?