InvocationsBuilderExtensions Class

Definition

Extension methods for AgentHostBuilder to register the Invocations protocol for one-line startup.

public static class InvocationsBuilderExtensions
type InvocationsBuilderExtensions = class
Public Module InvocationsBuilderExtensions
Inheritance
InvocationsBuilderExtensions

Methods

Name Description
AddInvocations(AgentHostBuilder, Func<IServiceProvider,InvocationHandler>, Action<InvocationsServerOptions>)

Registers the Invocations protocol with a factory delegate that creates the handler. Use this overload when you need full control over handler construction while still having access to the IServiceProvider.

AddInvocations(AgentHostBuilder, InvocationHandler, Action<InvocationsServerOptions>)

Registers the Invocations protocol with a pre-constructed handler instance.

AddInvocations<THandler>(AgentHostBuilder, Action<InvocationsServerOptions>)

Registers the Invocations protocol with the agent server builder using the specified THandler as the invocation handler.

Applies to