InvocationsServer 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 an Invocations protocol server. Creates the builder, registers the Invocations protocol with the specified handler, builds, and runs the server.
public static class InvocationsServer
type InvocationsServer = class
Public Class InvocationsServer
- Inheritance
-
InvocationsServer
Methods
| Name | Description |
|---|---|
| Run(Func<IServiceProvider,InvocationHandler>, String[], Action<AgentHostBuilder>) |
Builds and runs an Invocations 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 an Invocations protocol server using the specified handler type. This is the fastest path to a working server — one line of code. |