Language

TeamsInstallationUpdateRouteAttribute Class

Definition

Attribute to define a route that handles InstallationUpdate activities.

[Microsoft.Agents.Builder.App.RouteHandlerType(typeof(Microsoft.Agents.Extensions.MSTeams.App.TeamsRouteHandler))]
[System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)]
public class TeamsInstallationUpdateRouteAttribute : Attribute, Microsoft.Agents.Builder.App.IRouteAttribute
[<Microsoft.Agents.Builder.App.RouteHandlerType(typeof(Microsoft.Agents.Extensions.MSTeams.App.TeamsRouteHandler))>]
[<System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)>]
type TeamsInstallationUpdateRouteAttribute = class
    inherit Attribute
    interface IRouteAttribute
Public Class TeamsInstallationUpdateRouteAttribute
Inherits Attribute
Implements IRouteAttribute
Inheritance
TeamsInstallationUpdateRouteAttribute
Attributes
Implements

Remarks

Decorate a method with this attribute to register it as a handler for installation update activities. The method must match the TeamsRouteHandler delegate signature.

[TeamsInstallationUpdateRoute]
public async Task OnInstallationUpdateAsync(ITeamsTurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
{
    // Handle any installation update activity
}

Constructors

Name Description
TeamsInstallationUpdateRouteAttribute(Boolean, UInt16, String)

Attribute to define a route that handles InstallationUpdate activities.

Methods

Name Description
AddRoute(AgentApplication, MethodInfo)

Applies to