RouteBuilderBase<TBuilder>.Build Method

Definition

Builds and returns the configured route instance after validating required components.

public Microsoft.Agents.Builder.App.Route Build();
member this.Build : unit -> Microsoft.Agents.Builder.App.Route
Public Function Build () As Route

Returns

The constructed Route instance representing the current route configuration.

Remarks

Throws an exception if the route's selector or handler is not set. Ensure that both components are configured before calling this method. The return Route can be used in AddRoute(Route).

Applies to