RouteBuilderBase<TBuilder> 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.
Provides a fluent builder for configuring and constructing a Route instance with custom selection logic, handlers, and routing options.
public abstract class RouteBuilderBase<TBuilder> where TBuilder : RouteBuilderBase<TBuilder>
type RouteBuilderBase<'Builder (requires 'Builder :> RouteBuilderBase<'Builder>)> = class
Public MustInherit Class RouteBuilderBase(Of TBuilder)
Type Parameters
- TBuilder
- Inheritance
-
RouteBuilderBase<TBuilder>
- Derived
Constructors
| Name | Description |
|---|---|
| RouteBuilderBase<TBuilder>() | |
Fields
| Name | Description |
|---|---|
| _route | |
Methods
| Name | Description |
|---|---|
| AsAgentic(Boolean) |
Configures the route to operate in agentic mode, enabling behaviors associated with agentic processing. |
| AsInvoke(Boolean) |
Flags the route for Invoke handling. |
| AsNonTerminal() |
Marks the current route as non-terminal and returns the updated builder instance. |
| Build() |
Builds and returns the configured route instance after validating required components. |
| IsContextMatch(ITurnContext, Route) | |
| PreBuild() | |
| WithChannelId(ChannelId) |
Sets the channel identifier for the route and returns the builder instance for method chaining. |
| WithOAuthHandlers(Func<ITurnContext,String[]>) |
Configures OAuth handler functions for the route using the specified delegate. |
| WithOAuthHandlers(String) |
Configures the builder to use one or more OAuth authentication handlers specified in a delimited string. |
| WithOAuthHandlers(String[]) |
Configures the route to use the specified OAuth authentication handlers. |
| WithOrderRank(UInt16) |
Sets the order rank for the route and returns the current builder instance for further configuration. |
| WithSelector(RouteSelector) |
Sets the route selector used to determine how incoming requests are matched to this route builder. |