Skip to main content

Definition

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

Syntax

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 object

Syntax

Properties

Session

Gets or sets the session the MCP handlers resolve, or null until $metadata has been fetched and parsed.

Syntax

Property Value

Type: 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

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?