ConversationUpdateRouteAttribute 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 conversation update activities, optionally matching a specific event.
[System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)]
public class ConversationUpdateRouteAttribute : Attribute, Microsoft.Agents.Builder.App.IRouteAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, Inherited=true)>]
type ConversationUpdateRouteAttribute = class
inherit Attribute
interface IRouteAttribute
Public Class ConversationUpdateRouteAttribute
Inherits Attribute
Implements IRouteAttribute
- Inheritance
-
ConversationUpdateRouteAttribute
- Attributes
- Implements
Remarks
Decorate a method with this attribute to register it as a handler for conversation update activities. When eventName is provided, it is matched against ConversationUpdateEvents values. When omitted, all conversation update activities are matched. Use MembersAddedRouteAttribute or MembersRemovedRouteAttribute for the common member events. The method must match the RouteHandler delegate signature.
// Match any conversation update
[ConversationUpdateRoute]
public async Task OnConversationUpdateAsync(ITurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
{
// Handle any conversation update
}
Constructors
| Name | Description |
|---|---|
| ConversationUpdateRouteAttribute(String, Boolean, UInt16, String) |
Attribute to define a route that handles conversation update activities, optionally matching a specific event. |
Methods
| Name | Description |
|---|---|
| AddRoute(AgentApplication, MethodInfo) | |