IRouteAttribute.AddRoute(AgentApplication, MethodInfo) Method

Definition

Registers a route for the specified method within the given agent application.

public void AddRoute(Microsoft.Agents.Builder.App.AgentApplication app, System.Reflection.MethodInfo method);
abstract member AddRoute : Microsoft.Agents.Builder.App.AgentApplication * System.Reflection.MethodInfo -> unit
Public Sub AddRoute (app As AgentApplication, method As MethodInfo)

Parameters

app
AgentApplication

The agent application in which to register the route. Cannot be null.

method
MethodInfo

The method information representing the route to add. Must not be null and should reference a valid method.

Applies to