Compartir a través de


IConversations.SendConversationHistoryWithHttpMessagesAsync Método

Definición

Sobrecargas

SendConversationHistoryWithHttpMessagesAsync(String, Transcript, Dictionary<String,List<String>>, CancellationToken)
SendConversationHistoryWithHttpMessagesAsync(String, Transcript, Dictionary<String,List<String>>, CancellationToken)

SendConversationHistory.

SendConversationHistoryWithHttpMessagesAsync(String, Transcript, Dictionary<String,List<String>>, CancellationToken)

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>> SendConversationHistoryWithHttpMessagesAsync (string conversationId, Microsoft.Bot.Connector.Transcript history, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendConversationHistoryWithHttpMessagesAsync : string * Microsoft.Bot.Connector.Transcript * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>>
Public Function SendConversationHistoryWithHttpMessagesAsync (conversationId As String, history As Transcript, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))

Parámetros

conversationId
String
history
Transcript
customHeaders
Dictionary<String,List<String>>
cancellationToken
CancellationToken

Devoluciones

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Se aplica a

SendConversationHistoryWithHttpMessagesAsync(String, Transcript, Dictionary<String,List<String>>, CancellationToken)

SendConversationHistory.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>> SendConversationHistoryWithHttpMessagesAsync (string conversationId, Microsoft.Bot.Schema.Transcript transcript, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendConversationHistoryWithHttpMessagesAsync : string * Microsoft.Bot.Schema.Transcript * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>>
Public Function SendConversationHistoryWithHttpMessagesAsync (conversationId As String, transcript As Transcript, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))

Parámetros

conversationId
String

Id. de conversación.

transcript
Transcript

Transcripción de actividades.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Tarea que representa .Microsoft.Rest.HttpOperationResponse

Excepciones

Se produce cuando la operación devolvió un código de estado no válido.

Microsoft.Rest.SerializationException

Se produce cuando no se puede deserializar la respuesta.

Microsoft.Rest.ValidationException

Se produce cuando un parámetro obligatorio es NULL.

Comentarios

Este método permite cargar las actividades históricas en la conversación.

El remitente debe asegurarse de que las actividades históricas tienen identificadores únicos y marcas de tiempo adecuadas. El cliente usa los identificadores para tratar las actividades duplicadas y el cliente usa las marcas de tiempo para representar las actividades en el orden correcto.

Se aplica a