Sdílet prostřednictvím


ConversationsExtensions.SendConversationHistoryAsync Metoda

Definice

Přetížení

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

Návraty

Platí pro

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

Skupina operací pro tuto metodu rozšíření.

conversationId
String

ID konverzace.

transcript
Transcript

Přepis aktivit.

cancellationToken
CancellationToken

Token zrušení.

Návraty

Hodnota ResourceResponse

Poznámky

Tato metoda umožňuje nahrát do konverzace historické aktivity.

Odesílatel musí zajistit, aby historické aktivity měly jedinečná ID a příslušná časová razítka. Klient používá ID k práci s duplicitními aktivitami a časová razítka jsou používána klientem k vykreslení aktivit ve správném pořadí.

Platí pro