ServerVersionRegistry Class

Definition

Registry that collects version identity segments from protocol packages. Each protocol registers its identity string (e.g., azure-ai-agentserver-responses/1.0.0 (dotnet/10.0)) during route mapping, and the Azure.AI.AgentServer.Core.Internal.ServerVersionMiddleware reads all segments to compose the final x-platform-server response header.

public sealed class ServerVersionRegistry
type ServerVersionRegistry = class
Public NotInheritable Class ServerVersionRegistry
Inheritance
ServerVersionRegistry

Constructors

Name Description
ServerVersionRegistry()

Methods

Name Description
BuildIdentityString(String, Assembly)

Builds a standard identity string from an SDK name and assembly version. Format: {sdkName}/{version} (dotnet/{major}.{minor}).

GetSegments()

Returns all registered identity segments in registration order.

Register(String)

Registers a protocol identity segment. Duplicate values are ignored. This method is thread-safe.

Applies to