Language

SlackInstallationUpdateRouteAttribute Class

Definition

Attribute to define a route that handles InstallationUpdate activities.

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

Remarks

Decorate a method with this attribute to register it as a handler for installation update activities. The method must match the SlackRouteHandler, RouteHandler, or TypedRouteHandler<T> of ISlackActivity delegate signature.

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

Constructors

Name Description
SlackInstallationUpdateRouteAttribute(Boolean, UInt16, String)

Attribute to define a route that handles InstallationUpdate activities.

Methods

Name Description
AddRoute(AgentApplication, MethodInfo)

Applies to