TaskModule.OnSubmit 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.
Overloads
| OnSubmit(MultipleRouteSelector, SubmitHandlerAsync) |
Registers a handler to process the submission of a task module. |
| OnSubmit(RouteSelector, SubmitHandlerAsync) |
Registers a handler to process the submission of a task module. |
| OnSubmit(String, SubmitHandlerAsync) |
Registers a handler to process the submission of a task module. |
| OnSubmit(Regex, SubmitHandlerAsync) |
Registers a handler to process the submission of a task module. |
OnSubmit(MultipleRouteSelector, SubmitHandlerAsync)
Registers a handler to process the submission of a task module.
public Microsoft.Agents.Builder.App.AgentApplication OnSubmit(Microsoft.Agents.Builder.App.MultipleRouteSelector routeSelectors, Microsoft.Agents.Extensions.Teams.App.TaskModules.SubmitHandlerAsync handler);
member this.OnSubmit : Microsoft.Agents.Builder.App.MultipleRouteSelector * Microsoft.Agents.Extensions.Teams.App.TaskModules.SubmitHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnSubmit (routeSelectors As MultipleRouteSelector, handler As SubmitHandlerAsync) As AgentApplication
Parameters
- routeSelectors
- MultipleRouteSelector
Combination of String, Regex, and RouteSelectorAsync verb(s) to register the handler for.
- handler
- SubmitHandlerAsync
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnSubmit(RouteSelector, SubmitHandlerAsync)
Registers a handler to process the submission of a task module.
public Microsoft.Agents.Builder.App.AgentApplication OnSubmit(Microsoft.Agents.Builder.App.RouteSelector routeSelector, Microsoft.Agents.Extensions.Teams.App.TaskModules.SubmitHandlerAsync handler);
member this.OnSubmit : Microsoft.Agents.Builder.App.RouteSelector * Microsoft.Agents.Extensions.Teams.App.TaskModules.SubmitHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnSubmit (routeSelector As RouteSelector, handler As SubmitHandlerAsync) As AgentApplication
Parameters
- routeSelector
- RouteSelector
Function that's used to select a route. The function returning true triggers the route.
- handler
- SubmitHandlerAsync
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnSubmit(String, SubmitHandlerAsync)
Registers a handler to process the submission of a task module.
public Microsoft.Agents.Builder.App.AgentApplication OnSubmit(string verb, Microsoft.Agents.Extensions.Teams.App.TaskModules.SubmitHandlerAsync handler);
member this.OnSubmit : string * Microsoft.Agents.Extensions.Teams.App.TaskModules.SubmitHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnSubmit (verb As String, handler As SubmitHandlerAsync) As AgentApplication
Parameters
- verb
- String
Name of the verb to register the handler for.
- handler
- SubmitHandlerAsync
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnSubmit(Regex, SubmitHandlerAsync)
Registers a handler to process the submission of a task module.
public Microsoft.Agents.Builder.App.AgentApplication OnSubmit(System.Text.RegularExpressions.Regex verbPattern, Microsoft.Agents.Extensions.Teams.App.TaskModules.SubmitHandlerAsync handler);
member this.OnSubmit : System.Text.RegularExpressions.Regex * Microsoft.Agents.Extensions.Teams.App.TaskModules.SubmitHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnSubmit (verbPattern As Regex, handler As SubmitHandlerAsync) As AgentApplication
Parameters
- verbPattern
- Regex
Regular expression to match against the verbs to register the handler for
- handler
- SubmitHandlerAsync
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.