Share via


XUnitDialogTestLogger.LogIncomingActivityAsync Method

Definition

Logs messages sent from the user to the bot.

protected virtual System.Threading.Tasks.Task LogIncomingActivityAsync(Microsoft.Bot.Builder.ITurnContext context, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
abstract member LogIncomingActivityAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.LogIncomingActivityAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function LogIncomingActivityAsync (context As ITurnContext, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

context
ITurnContext

The context object for this turn.

activity
Activity

The Activity to be logged.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that represents the work to execute.

Remarks

Message activities will be logged as text. Other activities will be logged as json.

Applies to