Compartilhar via


ConversationsExtensions.SendConversationHistoryAsync Método

Definição

Sobrecargas

SendConversationHistoryAsync(IConversations, String, Transcript, CancellationToken)
SendConversationHistoryAsync(IConversations, String, Transcript, CancellationToken)

SendConversationHistory.

SendConversationHistoryAsync(IConversations, String, Transcript, CancellationToken)

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

Parâmetros

operations
IConversations
conversationId
String
history
Transcript
cancellationToken
CancellationToken

Retornos

Aplica-se a

SendConversationHistoryAsync(IConversations, String, Transcript, CancellationToken)

SendConversationHistory.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> SendConversationHistoryAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, Microsoft.Bot.Schema.Transcript transcript, System.Threading.CancellationToken cancellationToken = default);
static member SendConversationHistoryAsync : Microsoft.Bot.Connector.IConversations * string * Microsoft.Bot.Schema.Transcript * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function SendConversationHistoryAsync (operations As IConversations, conversationId As String, transcript As Transcript, 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.

transcript
Transcript

Transcrição de atividades.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

O ResourceResponse.

Comentários

Esse método permite carregar as atividades históricas na conversa.

O remetente deve garantir que as atividades históricas tenham IDs exclusivas e carimbos de data/hora apropriados. As IDs são usadas pelo cliente para lidar com atividades duplicadas e os carimbos de data/hora são usados pelo cliente para renderizar as atividades na ordem correta.

Aplica-se a