RouteBuilderBase<TBuilder>.WithSelector(RouteSelector) 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.
Sets the route selector used to determine how incoming requests are matched to this route builder.
public virtual TBuilder WithSelector(Microsoft.Agents.Builder.App.RouteSelector selector);
abstract member WithSelector : Microsoft.Agents.Builder.App.RouteSelector -> 'Builder
override this.WithSelector : Microsoft.Agents.Builder.App.RouteSelector -> 'Builder
Public Overridable Function WithSelector (selector As RouteSelector) As TBuilder
Parameters
- selector
- RouteSelector
The route selector that defines the criteria for matching requests to the route.
Returns
The current instance of RouteBuilder with the specified selector applied.
Remarks
Use this method to customize the matching logic for routes. This allows for advanced routing scenarios where requests are selected based on custom rules or patterns.