EventRouteBuilderBase<TBuilder>.WithName Method

Definition

Overloads

Name Description
WithName(String)

Configures the route to match event activities with the specified name, using a case-insensitive comparison.

WithName(Regex)

Configures the event route to match event activities whose name satisfies the specified regular expression pattern.

WithName(String)

Configures the route to match event activities with the specified name, using a case-insensitive comparison.

public TBuilder WithName(string name);
member this.WithName : string -> 'Builder
Public Function WithName (name As String) As TBuilder

Parameters

name
String

The name of the event activity to match. Comparison is case-insensitive. Cannot be null.

Returns

TBuilder

The current builder instance with the added selector for matching Name.

Remarks

This method restricts the route to only handle event activities whose name matches the specified value. If the route is marked as agentic, only agentic requests will be considered for matching.

Applies to

WithName(Regex)

Configures the event route to match event activities whose name satisfies the specified regular expression pattern.

public TBuilder WithName(System.Text.RegularExpressions.Regex namePattern);
member this.WithName : System.Text.RegularExpressions.Regex -> 'Builder
Public Function WithName (namePattern As Regex) As TBuilder

Parameters

namePattern
Regex

The regular expression used to match the name of incoming event activities. Cannot be null.

Returns

TBuilder

The current builder instance configured with the specified Name pattern selector.

Remarks

This method restricts the route to event activities whose name matches the provided pattern. If the route is marked as agentic, only agentic requests will be considered for matching.

Applies to