AgentHostBuilder.RegisterProtocol Method

Definition

Registers a protocol with the builder. Throws if the protocol is already registered. Called by protocol extension methods (e.g., AddResponses, AddInvocations).

public void RegisterProtocol(string protocolName, Action<Microsoft.AspNetCore.Routing.IEndpointRouteBuilder> endpointMapper);
member this.RegisterProtocol : string * Action<Microsoft.AspNetCore.Routing.IEndpointRouteBuilder> -> unit
Public Sub RegisterProtocol (protocolName As String, endpointMapper As Action(Of IEndpointRouteBuilder))

Parameters

protocolName
String

The protocol name (e.g., "Responses", "Invocations").

endpointMapper
Action<IEndpointRouteBuilder>

Action to map protocol endpoints during the build phase.

Applies to