ResponsesServer 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.
One-line entry point for running a Responses protocol server. Creates the builder, registers the Responses protocol with the specified handler, builds, and runs the server.
public static class ResponsesServer
type ResponsesServer = class
Public Class ResponsesServer
- Inheritance
-
ResponsesServer
Methods
| Name | Description |
|---|---|
| Run(Func<IServiceProvider,ResponseHandler>, String[], Action<AgentHostBuilder>) |
Builds and runs a Responses protocol server using a factory delegate for handler construction. Use this when you need full control over how the handler is created. |
| Run<THandler>(String[], Action<AgentHostBuilder>) |
Builds and runs a Responses protocol server using the specified handler type. This is the fastest path to a working server — one line of code. |