TeamsEndOfConversationRouteAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attribute to define a route that handles end of conversation activities.
[Microsoft.Agents.Builder.App.RouteHandlerType(typeof(Microsoft.Agents.Extensions.MSTeams.App.TeamsRouteHandler))]
[System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)]
public class TeamsEndOfConversationRouteAttribute : 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 TeamsEndOfConversationRouteAttribute = class
inherit Attribute
interface IRouteAttribute
Public Class TeamsEndOfConversationRouteAttribute
Inherits Attribute
Implements IRouteAttribute
- Inheritance
-
TeamsEndOfConversationRouteAttribute
- Attributes
- Implements
Remarks
Decorate a method with this attribute to register it as a handler for endOfConversation activities. The method must match the TeamsRouteHandler delegate signature.
[TeamsEndOfConversationRoute]
public async Task OnEndOfConversationAsync(ITeamsTurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
{
// Handle end of conversation activity
}
Constructors
| Name | Description |
|---|---|
| TeamsEndOfConversationRouteAttribute(Boolean, UInt16, String) |
Attribute to define a route that handles end of conversation activities. |
Methods
| Name | Description |
|---|---|
| AddRoute(AgentApplication, MethodInfo) | |