AgentHostBuilder.RegisterProtocol Method
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.
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.