ServerVersionRegistry Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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: |
| 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. |