TeamsFeedbackLoopRouteAttribute 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 feedback loop invoke activities.
[Microsoft.Agents.Builder.App.RouteHandlerType(typeof(Microsoft.Agents.Extensions.MSTeams.App.TeamsFeedbackLoopHandler))]
[System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)]
public class TeamsFeedbackLoopRouteAttribute : Attribute, Microsoft.Agents.Builder.App.IRouteAttribute
[<Microsoft.Agents.Builder.App.RouteHandlerType(typeof(Microsoft.Agents.Extensions.MSTeams.App.TeamsFeedbackLoopHandler))>]
[<System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)>]
type TeamsFeedbackLoopRouteAttribute = class
inherit Attribute
interface IRouteAttribute
Public Class TeamsFeedbackLoopRouteAttribute
Inherits Attribute
Implements IRouteAttribute
- Inheritance
-
TeamsFeedbackLoopRouteAttribute
- Attributes
- Implements
Remarks
Decorate a method with this attribute to register it as a handler for message/submitAction invoke activities where actionName is feedback. The method must match the TeamsFeedbackLoopHandler delegate signature.
[TeamsFeedbackLoopRoute]
public async Task OnFeedbackAsync(ITeamsTurnContext turnContext, ITurnState turnState, FeedbackData feedbackData, CancellationToken cancellationToken)
{
// Handle feedback loop action
}
Constructors
| Name | Description |
|---|---|
| TeamsFeedbackLoopRouteAttribute(Boolean, UInt16, String) |
Attribute to define a route that handles feedback loop invoke activities. |
Methods
| Name | Description |
|---|---|
| AddRoute(AgentApplication, MethodInfo) | |