InstallationUpdateRouteAttribute Class
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.
Attribute to define a route that handles InstallationUpdate activities.
[System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)]
public class InstallationUpdateRouteAttribute : Attribute, Microsoft.Agents.Builder.App.IRouteAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)>]
type InstallationUpdateRouteAttribute = class
inherit Attribute
interface IRouteAttribute
Public Class InstallationUpdateRouteAttribute
Inherits Attribute
Implements IRouteAttribute
- Inheritance
-
InstallationUpdateRouteAttribute
- Attributes
- Implements
Remarks
Decorate a method with this attribute to register it as a handler for installation update activities. The method must match the RouteHandler delegate signature.
[InstallationUpdateRoute]
public async Task OnInstallationUpdateAsync(ITurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
{
// Handle any installation update activity
}
Constructors
| Name | Description |
|---|---|
| InstallationUpdateRouteAttribute(Boolean, UInt16, String) |
Attribute to define a route that handles InstallationUpdate activities. |
Methods
| Name | Description |
|---|---|
| AddRoute(AgentApplication, MethodInfo) | |