Compartilhar via


XUnitDialogTestLogger.LogOutgoingActivityAsync Método

Definição

Registra mensagens enviadas do bot para o usuário.

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

Parâmetros

context
ITurnContext

O objeto de contexto para este turno.

activity
Activity

O Activity a ser registrado.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Uma tarefa que representa o trabalho a ser executado.

Aplica-se a