MembersRemovedRouteAttribute Class

Definition

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

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

Remarks

Decorate a method with this attribute to register it as a handler for the MembersRemoved event. The method must match the RouteHandler delegate signature.

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

Constructors

Name Description
MembersRemovedRouteAttribute(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