AgentHostApp Class

Definition

Represents a configured and runnable agent server application. Wraps the underlying WebApplication and provides escape-hatch access for advanced scenarios.

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

Properties

Name Description
App

Escape hatch to the underlying WebApplication. Use this to add custom middleware, routes, or other ASP.NET Core configuration.

Methods

Name Description
Run()

Start the server and block until shutdown (SIGTERM or Ctrl+C).

RunAsync(CancellationToken)

Start the server asynchronously.

Applies to