Partilhar via


XUnitDialogTestLogger.LogOutgoingActivityAsync Método

Definição

Regista mensagens enviadas do bot para o utilizador.

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 desta vez.

activity
Activity

O Activity a ser registado.

cancellationToken
CancellationToken

O token de cancelamento.

Devoluções

Uma tarefa que representa o trabalho a executar.

Aplica-se a