ITurnContext.OnUpdateActivity(UpdateActivityHandler) Method

Definition

Adds a response handler for update activity operations.

public Microsoft.Bot.Builder.ITurnContext OnUpdateActivity (Microsoft.Bot.Builder.UpdateActivityHandler handler);
abstract member OnUpdateActivity : Microsoft.Bot.Builder.UpdateActivityHandler -> Microsoft.Bot.Builder.ITurnContext
Public Function OnUpdateActivity (handler As UpdateActivityHandler) As ITurnContext

Parameters

handler
UpdateActivityHandler

The handler to add to the context object.

Returns

The updated context object.

Remarks

When the context's UpdateActivityAsync(IActivity, CancellationToken) is called, the adapter calls the registered handlers in the order in which they were added to the context object.

Applies to

See also