Share via


TelemetryLoggerMiddleware.OnTurnAsync Method

Definition

Logs events for incoming, outgoing, updated, or deleted message activities, using the TelemetryClient.

public virtual System.Threading.Tasks.Task OnTurnAsync (Microsoft.Bot.Builder.ITurnContext context, Microsoft.Bot.Builder.NextDelegate nextTurn, System.Threading.CancellationToken cancellationToken);
abstract member OnTurnAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.NextDelegate * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTurnAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.NextDelegate * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function OnTurnAsync (context As ITurnContext, nextTurn As NextDelegate, cancellationToken As CancellationToken) As Task

Parameters

context
ITurnContext

The context object for this turn.

nextTurn
NextDelegate

The delegate to call to continue the bot middleware pipeline.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Implements

Applies to

See also