ChannelServiceHandlerBase.OnSendConversationHistoryAsync Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
SendConversationHistory() API for Skill.SendConversationHistory() API for Skill (Interfejs API sendConversationHistory() dla umiejętności.
protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> OnSendConversationHistoryAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, string conversationId, Microsoft.Bot.Schema.Transcript transcript, System.Threading.CancellationToken cancellationToken = default);
abstract member OnSendConversationHistoryAsync : System.Security.Claims.ClaimsIdentity * string * Microsoft.Bot.Schema.Transcript * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
override this.OnSendConversationHistoryAsync : System.Security.Claims.ClaimsIdentity * string * Microsoft.Bot.Schema.Transcript * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Protected Overridable Function OnSendConversationHistoryAsync (claimsIdentity As ClaimsIdentity, conversationId As String, transcript As Transcript, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)
Parametry
- claimsIdentity
- ClaimsIdentity
claimsIdentity dla bota powinna mieć wartość AudienceClaim, AppIdClaim i ServiceUrlClaim.
- conversationId
- String
Identyfikator konwersacji.
- transcript
- Transcript
Transkrypcja działań.
- cancellationToken
- CancellationToken
Token anulowania.
Zwraca
zadanie odpowiedzi zasobu.
Uwagi
Przesłoń tę metodę do tej metody, aby przekazać historyczne działania 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.