DeleteActivityHandler 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.
A method that can participate in delete activity events for the current turn.
public delegate System.Threading.Tasks.Task DeleteActivityHandler(ITurnContext turnContext, ConversationReference reference, Func<Task> next);
type DeleteActivityHandler = delegate of ITurnContext * ConversationReference * Func<Task> -> Task
Public Delegate Function DeleteActivityHandler(turnContext As ITurnContext, reference As ConversationReference, next As Func(Of Task)) As Task
Parameters
- turnContext
- ITurnContext
The context object for the turn.
- reference
- ConversationReference
The conversation containing the activity.
Return Value
A task that represents the work queued to execute.
Remarks
A handler calls the next
delegate to pass control to the next registered handler. If a handler doesn’t call the next delegate, the adapter does not call any of the subsequent handlers and does not delete the activity.
The conversation reference's ActivityId indicates the activity in the conversation to replace.