Skip to main content

Definition

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

Syntax

Summary

Builds one MCP session per enabled OData route prefix discovered from endpoint routing.

Constructors

.ctor

Initializes a new instance of the ODataMcpSessionFactory class.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

Sessions

Gets sessions keyed by OData route prefix. Discovery runs on first access when UseODataMcp has not already rebuilt after endpoints exist.

Syntax

Property Value

Type: System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.OData.Mcp.Core.Catalog.ODataMcpSession>

Methods

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

Rebuild

Discovers routes from DI and optional application data sources, then rebuilds sessions.

Syntax

Parameters

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

Resolve

Resolves the session for the current HTTP path.

Syntax

Parameters

Returns

Type: Microsoft.OData.Mcp.Core.Catalog.ODataMcpSession The matching session.

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?