EndOfConversationRouteAttribute Class

Definition

Attribute to define a route that handles end of conversation activities.

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

Remarks

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

[EndOfConversationRoute]
public async Task OnEndOfConversationAsync(ITurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
{
    // Handle end of conversation activity
}

Constructors

Name Description
EndOfConversationRouteAttribute(Boolean, UInt16, String)

Attribute to define a route that handles end of conversation activities.

Methods

Name Description
AddRoute(AgentApplication, MethodInfo)

Applies to