MessageReactionsAddedRouteAttribute 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 message reaction added activities.
[System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)]
public class MessageReactionsAddedRouteAttribute : Attribute, Microsoft.Agents.Builder.App.IRouteAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)>]
type MessageReactionsAddedRouteAttribute = class
inherit Attribute
interface IRouteAttribute
Public Class MessageReactionsAddedRouteAttribute
Inherits Attribute
Implements IRouteAttribute
- Inheritance
-
MessageReactionsAddedRouteAttribute
- Attributes
- Implements
Remarks
Decorate a method with this attribute to register it as a handler for activities where reactions have been added to a message. The method must match the RouteHandler delegate signature.
[MessageReactionsAddedRoute]
public async Task OnReactionsAddedAsync(ITurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
{
// Handle reactions added event
}
Constructors
| Name | Description |
|---|---|
| MessageReactionsAddedRouteAttribute(Boolean, UInt16, String) |
Attribute to define a route that handles message reaction added activities. |
Methods
| Name | Description |
|---|---|
| AddRoute(AgentApplication, MethodInfo) | |