RouteBuilderBase<TBuilder>.WithSelector(RouteSelector) Method

Definition

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

TBuilder

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.

Applies to