DeleteActivityHandler Delegate

Definition

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.

next
Func<Task>

The delegate to call to continue event processing.

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.

Applies to

See also