TeamUpdateRouteBuilder 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.
RouteBuilder for routing Teams ConversationUpdate activities in an AgentApplication.
public class TeamUpdateRouteBuilder : Microsoft.Agents.Builder.App.RouteBuilderBase<Microsoft.Agents.Extensions.MSTeams.Teams.TeamUpdateRouteBuilder>
type TeamUpdateRouteBuilder = class
inherit RouteBuilderBase<TeamUpdateRouteBuilder>
Public Class TeamUpdateRouteBuilder
Inherits RouteBuilderBase(Of TeamUpdateRouteBuilder)
- Inheritance
Remarks
Use TeamUpdateRouteBuilder to create and configure routes that respond to Activity Type of ConversationUpdate with EventType matching team events. This builder allows matching specific event types via ForTeamArchived(), ForTeamDeleted(), etc., and supports ordering, oauth, and agentic routing scenarios. This builder defaults to the Microsoft.Agents.Core.Models.Channels.Msteams channelId unless otherwise specified.
Constructors
| Name | Description |
|---|---|
| TeamUpdateRouteBuilder() | |
Fields
| Name | Description |
|---|---|
| _route | (Inherited from RouteBuilderBase<TBuilder>) |
Methods
| Name | Description |
|---|---|
| AsAgentic(Boolean) |
Configures the route to operate in agentic mode, enabling behaviors associated with agentic processing. (Inherited from RouteBuilderBase<TBuilder>) |
| AsInvoke(Boolean) |
Returns the current event route builder instance. For event routes, the invoke flag is ignored to prevent misconfiguration. |
| AsNonTerminal() |
Marks the current route as non-terminal and returns the updated builder instance. (Inherited from RouteBuilderBase<TBuilder>) |
| Build() |
Builds and returns the configured route instance after validating required components. (Inherited from RouteBuilderBase<TBuilder>) |
| Create() |
Creates a new instance of the TeamUpdateRouteBuilder class for constructing route definitions. |
| ForTeamArchived() |
Match on team archived events. |
| ForTeamDeleted() |
Match on team deleted events. |
| ForTeamRenamed() |
Match on team renamed events. |
| ForTeamRestored() |
Match on team restored events. |
| ForTeamUnarchived() |
Match on team unarchived events. |
| PreBuild() | |
| WithChannelId(ChannelId) |
Sets the channel identifier for the route and returns the builder instance for method chaining. (Inherited from RouteBuilderBase<TBuilder>) |
| WithHandler(TeamUpdateHandler) |
Configures the route to use the specified handler for team update events. |
| WithOAuthHandlers(Func<ITurnContext,String[]>) |
Configures OAuth handler functions for the route using the specified delegate. (Inherited from RouteBuilderBase<TBuilder>) |
| WithOAuthHandlers(String) |
Configures the builder to use one or more OAuth authentication handlers specified in a delimited string. (Inherited from RouteBuilderBase<TBuilder>) |
| WithOAuthHandlers(String[]) |
Configures the route to use the specified OAuth authentication handlers. (Inherited from RouteBuilderBase<TBuilder>) |
| WithOrderRank(UInt16) |
Sets the order rank for the route and returns the current builder instance for further configuration. (Inherited from RouteBuilderBase<TBuilder>) |
| WithSelector(RouteSelector) |
Sets the route selector used to determine how incoming requests are matched to this route builder. (Inherited from RouteBuilderBase<TBuilder>) |