IConversations.SendConversationHistoryWithHttpMessagesAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
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))
Parameters
- conversationId
- String
- history
- Transcript
- customHeaders
- Dictionary<String,List<String>>
- cancellationToken
- CancellationToken
Retouren
Van toepassing op
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))
Parameters
- conversationId
- String
Gespreks-id.
- transcript
- Transcript
Transcript van activiteiten.
- customHeaders
- Dictionary<String,List<String>>
De headers die aan de aanvraag worden toegevoegd.
- cancellationToken
- CancellationToken
Het annuleringstoken.
Retouren
Een taak die de Microsoft.Rest.HttpOperationResponsevertegenwoordigt.
Uitzonderingen
Gegenereerd toen de bewerking een ongeldige statuscode retourneerde.
Gegenereerd wanneer het antwoord niet kan worden gedeserialiseerd.
Gegenereerd wanneer een vereiste parameter null is.
Opmerkingen
Met deze methode kunt u de historische activiteiten uploaden naar het gesprek.
De afzender moet ervoor zorgen dat de historische activiteiten unieke id's en de juiste tijdstempels hebben. De id's worden door de client gebruikt om dubbele activiteiten af te handelen en de tijdstempels worden door de client gebruikt om de activiteiten in de juiste volgorde weer te geven.