Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Configuration Inheritance: System.Object

Syntax

Microsoft.OData.Mcp.Core.Configuration.BuildInfo

Summary

Build information for the MCP server.

Constructors

.ctor

Syntax

public BuildInfo()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Branch

Gets or sets the branch name from which the build was created.

Syntax

public string Branch { get; set; }

Property Value

Type: string? The source control branch name.

BuildNumber

Gets or sets the build number or identifier.

Syntax

public string BuildNumber { get; set; }

Property Value

Type: string? The build number or identifier from the CI/CD system.

BuildTimestamp

Gets or sets the timestamp when the build was created.

Syntax

public System.Nullable<System.DateTime> BuildTimestamp { get; set; }

Property Value

Type: System.Nullable<System.DateTime?>? The UTC timestamp of the build.

CommitHash

Gets or sets the commit hash of the source code.

Syntax

public string CommitHash { get; set; }

Property Value

Type: string? The Git commit hash or similar version control identifier.

Configuration

Gets or sets the build configuration (e.g., Debug, Release).

Syntax

public string Configuration { get; set; }

Property Value

Type: string? The build configuration used to compile the server.

TargetFramework

Gets or sets the target framework for which the server was built.

Syntax

public string TargetFramework { get; set; }

Property Value

Type: string? The .NET target framework (e.g., “net8.0”, “net9.0”).

Methods

Clone

Creates a copy of this build information.

Syntax

public Microsoft.OData.Mcp.Core.Configuration.BuildInfo Clone()

Returns

Type: Microsoft.OData.Mcp.Core.Configuration.BuildInfo A new instance with the same values.

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?