Language

SlackMembersRemovedRouteAttribute Class

Definition

Attribute to define a route that handles conversation update activities when members are removed.

[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 SlackMembersRemovedRouteAttribute : 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 SlackMembersRemovedRouteAttribute = class
    inherit Attribute
    interface IRouteAttribute
Public Class SlackMembersRemovedRouteAttribute
Inherits Attribute
Implements IRouteAttribute
Inheritance
SlackMembersRemovedRouteAttribute
Attributes
Implements

Remarks

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

[SlackMembersRemovedRoute]
public async Task OnMembersRemovedAsync(ISlackTurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
{
    // Handle members removed event
}

Constructors

Name Description
SlackMembersRemovedRouteAttribute(Boolean, UInt16, String)

Attribute to define a route that handles conversation update activities when members are removed.

Methods

Name Description
AddRoute(AgentApplication, MethodInfo)

Applies to