AgentHostMiddlewareExtensions 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.
Extension methods for standalone (Tier 3) server setups that do not use AgentHostBuilder. Registers all Core middleware services and adds them to the pipeline in one call each.
public static class AgentHostMiddlewareExtensions
type AgentHostMiddlewareExtensions = class
Public Module AgentHostMiddlewareExtensions
- Inheritance
-
AgentHostMiddlewareExtensions
Remarks
Tier 1 and Tier 2 setups (using AgentHost or AgentHostBuilder) get this automatically — these methods are only needed when building on raw WebApplicationBuilder.
Usage:
builder.Services.AddAgentServerCore();
var app = builder.Build();
app.UseAgentServerCore();
Methods
| Name | Description |
|---|---|
| AddAgentServerCore(IServiceCollection) |
Registers all Core middleware services: request ID, server version, request ID baggage propagation, and inbound request logging. |
| UseAgentServerCore(IApplicationBuilder) |
Adds all Core middleware to the pipeline in the correct order: request ID → server version → request ID baggage → inbound request logging. |