Udostępnij za pośrednictwem


ConversationsExtensions.SendConversationHistoryAsync Metoda

Definicja

Przeciążenia

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)

Parametry

operations
IConversations
conversationId
String
history
Transcript
cancellationToken
CancellationToken

Zwraca

Dotyczy

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)

Parametry

operations
IConversations

Grupa operacji dla tej metody rozszerzenia.

conversationId
String

Identyfikator konwersacji.

transcript
Transcript

Transkrypcja działań.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Element ResourceResponse.

Uwagi

Ta metoda umożliwia przekazywanie historycznych działań do konwersacji.

Nadawca musi upewnić się, że historyczne działania mają unikatowe identyfikatory i odpowiednie znaczniki czasu. Identyfikatory są używane przez klienta do obsługi zduplikowanych działań, a sygnatury czasowe są używane przez klienta do renderowania działań w odpowiedniej kolejności.

Dotyczy