IRouteAttribute.AddRoute(AgentApplication, MethodInfo) 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.
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.