Condividi tramite


IConversations.SendConversationHistoryWithHttpMessagesAsync Metodo

Definizione

Overload

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))

Parametri

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

Restituisce

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Si applica 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))

Parametri

conversationId
String

ID conversazione.

transcript
Transcript

Trascrizione delle attività.

customHeaders
Dictionary<String,List<String>>

Intestazioni che verranno aggiunte alla richiesta.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Attività che rappresenta l'oggetto Microsoft.Rest.HttpOperationResponse.

Eccezioni

Generata quando l'operazione ha restituito un codice di stato non valido.

Microsoft.Rest.SerializationException

Generata quando non è possibile deserializzare la risposta.

Microsoft.Rest.ValidationException

Generata quando un parametro obbligatorio è Null.

Commenti

Questo metodo consente di caricare le attività storiche nella conversazione.

Il mittente deve assicurarsi che le attività cronologiche abbiano ID univoci e timestamp appropriati. Gli ID vengono usati dal client per gestire le attività duplicate e i timestamp vengono usati dal client per eseguire il rendering delle attività nell'ordine corretto.

Si applica a