XUnitDialogTestLogger.LogIncomingActivityAsync Method
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.
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.
- 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.