Compartilhar via


ConversationsExtensions.ReplyToActivityAsync Método

Definição

Sobrecargas

ReplyToActivityAsync(IConversations, Activity, CancellationToken)
ReplyToActivityAsync(IConversations, Activity, CancellationToken)

Responder a uma atividade em uma conversa existente.

ReplyToActivityAsync(IConversations, String, String, Activity, CancellationToken)
ReplyToActivityAsync(IConversations, String, String, Activity, CancellationToken)

ReplyToActivity.

ReplyToActivityAsync(IConversations, Activity, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> ReplyToActivityAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Connector.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member ReplyToActivityAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function ReplyToActivityAsync (operations As IConversations, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parâmetros

operations
IConversations
activity
Activity
cancellationToken
CancellationToken

Retornos

Aplica-se a

ReplyToActivityAsync(IConversations, Activity, CancellationToken)

Responder a uma atividade em uma conversa existente.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> ReplyToActivityAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member ReplyToActivityAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function ReplyToActivityAsync (operations As IConversations, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parâmetros

operations
IConversations

O grupo de operações para esse método de extensão.

activity
Activity

Atividade a ser enviada.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Um Task representando a operação assíncrona.

Aplica-se a

ReplyToActivityAsync(IConversations, String, String, Activity, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> ReplyToActivityAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, string activityId, Microsoft.Bot.Connector.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member ReplyToActivityAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function ReplyToActivityAsync (operations As IConversations, conversationId As String, activityId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parâmetros

operations
IConversations
conversationId
String
activityId
String
activity
Activity
cancellationToken
CancellationToken

Retornos

Aplica-se a

ReplyToActivityAsync(IConversations, String, String, Activity, CancellationToken)

ReplyToActivity.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> ReplyToActivityAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, string activityId, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member ReplyToActivityAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function ReplyToActivityAsync (operations As IConversations, conversationId As String, activityId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parâmetros

operations
IConversations

O grupo de operações para esse método de extensão.

conversationId
String

ID da conversa.

activityId
String

activityId a resposta é para (OPCIONAL).

activity
Activity

Atividade a ser enviada.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

O ResourceResponse.

Comentários

Esse método permite que você responda a uma atividade.

Isso é um pouco diferente de SendToConversation(). * SendToConversation(conversationId) – acrescentará a atividade ao final da conversa de acordo com o carimbo de data/hora ou semântica do canal. * ReplyToActivity(conversationId,ActivityId) – adiciona a atividade como uma resposta a outra atividade, se o canal der suporte a ela. Se o canal não der suporte a respostas aninhadas, ReplyToActivity retornará para SendToConversation.

Use ReplyToActivity ao responder a uma atividade específica na conversa.

Use SendToConversation em todos os outros casos.

Aplica-se a