AgentLifecycleExtensions.OnAgentLifecycle Method
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.
Registers a handler for all Agent 365 agentLifecycle event activity variants.
public static Microsoft.Teams.Apps.TeamsBotApplication OnAgentLifecycle(this Microsoft.Teams.Apps.TeamsBotApplication app, Microsoft.Teams.Apps.AgentLifecycleHandler handler);
static member OnAgentLifecycle : Microsoft.Teams.Apps.TeamsBotApplication * Microsoft.Teams.Apps.AgentLifecycleHandler -> Microsoft.Teams.Apps.TeamsBotApplication
<Extension()>
Public Function OnAgentLifecycle (app As TeamsBotApplication, handler As AgentLifecycleHandler) As TeamsBotApplication
Parameters
The Teams bot application.
- handler
- AgentLifecycleHandler
The handler to register.
Returns
The updated Teams bot application.