AgentLifecycleHandler Delegate
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.
Delegate for handling all Agent 365 lifecycle event activity variants.
public delegate System.Threading.Tasks.Task AgentLifecycleHandler(Context<AgentLifecycleEventActivity> context, CancellationToken cancellationToken = default);
type AgentLifecycleHandler = delegate of Context<AgentLifecycleEventActivity> * CancellationToken -> Task
Public Delegate Function AgentLifecycleHandler(context As Context(Of AgentLifecycleEventActivity), Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- context
- Context<AgentLifecycleEventActivity>
The context for the lifecycle event activity.
- cancellationToken
- CancellationToken
A cancellation token that can be used to cancel the operation.
Return Value
A task representing the asynchronous operation.