Partilhar 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

Devoluções

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 este método de extensão.

conversationId
String

ID de Conversação.

transcript
Transcript

Transcrição de atividades.

cancellationToken
CancellationToken

O token de cancelamento.

Devoluções

O campo ResourceResponse.

Observações

Este método permite-lhe carregar as atividades históricas para a conversação.

O remetente tem de garantir que as atividades históricas têm IDs exclusivos e carimbos de data/hora adequados. Os IDs são utilizados pelo cliente para lidar com atividades duplicadas e os carimbos de data/hora são utilizados pelo cliente para compor as atividades pela ordem certa.

Aplica-se a