Definition
Assembly: Microsoft.OData.Mcp.AspNetCore.dll Namespace: Microsoft.OData.Mcp.AspNetCore.Hosting Inheritance: System.ObjectSyntax
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
objectSyntax
Properties
Sessions
Gets sessions keyed by OData route prefix. Discovery runs on first access whenUseODataMcp 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
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
Rebuild
Discovers routes from DI and optional application data sources, then rebuilds sessions.Syntax
Parameters
ReferenceEquals Inherited
Inherited from
objectSyntax
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
objectSyntax
Returns
Type:string?