Sprog

ActionExecuteRouteBuilder Class

Definition

Provides a concrete builder for routing Adaptive Card Action.Execute invoke activities in an AgentApplication.

public class ActionExecuteRouteBuilder : Microsoft.Agents.Builder.App.RouteBuilderBase<Microsoft.Agents.Builder.App.AdaptiveCards.ActionExecuteRouteBuilder>
type ActionExecuteRouteBuilder = class
    inherit RouteBuilderBase<ActionExecuteRouteBuilder>
Public Class ActionExecuteRouteBuilder
Inherits RouteBuilderBase(Of ActionExecuteRouteBuilder)
Inheritance

Remarks

Routes built from this builder match invoke activities named adaptiveCard/action whose Action.Verb matches the configured verb or verb pattern. When neither WithVerb(String) nor WithVerb(Regex) is called the route matches any verb. A custom selector supplied via WithSelector(RouteSelector) is additive to the basic route matching (channel, activity type, invoke name, and verb).

Constructors

Name Description
ActionExecuteRouteBuilder()

Fields

Name Description
_route (Inherited from RouteBuilderBase<TBuilder>)

Methods

Name Description
AsAgentic(Boolean)

Configures the route to operate in agentic mode, enabling behaviors associated with agentic processing.

(Inherited from RouteBuilderBase<TBuilder>)
AsInvoke(Boolean)

Returns the current builder instance.

AsNonTerminal()

Marks the current route as non-terminal and returns the updated builder instance.

(Inherited from RouteBuilderBase<TBuilder>)
Build()

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

(Inherited from RouteBuilderBase<TBuilder>)
Create()

Creates a new instance of the ActionExecuteRouteBuilder class.

PreBuild()
WithChannelId(ChannelId)

Sets the channel identifier for the route and returns the builder instance for method chaining.

(Inherited from RouteBuilderBase<TBuilder>)
WithHandler(ActionExecuteHandler)

Configures the route to handle Action.Execute events using the specified handler.

WithHandler(ActionExecuteValueHandler)

Configures the route to handle Action.Execute events using the specified handler.

WithOAuthHandlers(Func<ITurnContext,String[]>)

Configures OAuth handler functions for the route using the specified delegate.

(Inherited from RouteBuilderBase<TBuilder>)
WithOAuthHandlers(String)

Configures the builder to use one or more OAuth authentication handlers specified in a delimited string.

(Inherited from RouteBuilderBase<TBuilder>)
WithOAuthHandlers(String[])

Configures the route to use the specified OAuth authentication handlers.

(Inherited from RouteBuilderBase<TBuilder>)
WithOrderRank(UInt16)

Sets the order rank for the route and returns the current builder instance for further configuration.

(Inherited from RouteBuilderBase<TBuilder>)
WithSelector(RouteSelector)

Sets a custom route selector that is additive to the basic Action.Execute matching (channel, activity type, invoke name, and verb).

WithVerb(Regex)

Configures the route to match Action.Execute activities whose verb matches the specified pattern.

WithVerb(String)

Configures the route to match only Action.Execute activities whose verb equals the specified value.

Applies to