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