FeedbackLoopRouteAttribute Class

Definition

Attribute to define a route that handles feedback loop invoke activities.

[System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)]
public class FeedbackLoopRouteAttribute : Attribute, Microsoft.Agents.Builder.App.IRouteAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)>]
type FeedbackLoopRouteAttribute = class
    inherit Attribute
    interface IRouteAttribute
Public Class FeedbackLoopRouteAttribute
Inherits Attribute
Implements IRouteAttribute
Inheritance
FeedbackLoopRouteAttribute
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 FeedbackLoopHandler delegate signature.

[FeedbackLoopRoute]
public async Task OnFeedbackAsync(ITurnContext turnContext, ITurnState turnState, FeedbackData feedbackData, CancellationToken cancellationToken)
{
    // Handle feedback loop action
}

Constructors

Name Description
FeedbackLoopRouteAttribute(Boolean, UInt16, String)

Attribute to define a route that handles feedback loop invoke activities.

Methods

Name Description
AddRoute(AgentApplication, MethodInfo)

Applies to