Definition
Assembly: Microsoft.OData.Mcp.Tools.dll Namespace: Microsoft.OData.Mcp.Tools.Hosting Inheritance: System.ObjectSyntax
Summary
A mutable slot for the one ODataMcpSession a Tools host serves, registered before the host is built and filled once$metadata has been fetched and parsed.
Remarks
The session cannot be registered directly because building it requires the very IHttpClientFactory the host owns: the metadata GET runs through the authenticating"OData" client, which only exists after Build(), and a service collection is
frozen from that moment on. This holder is what lets one host serve both sides of that ordering.
Examples
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Properties
Session
Gets or sets the session the MCP handlers resolve, ornull until $metadata
has been fetched and parsed.
Syntax
Property Value
Type: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
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?