Share via


ChannelServiceHandlerBase.OnSendConversationHistoryAsync Method

Definition

SendConversationHistory() API for Skill.

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)

Parameters

claimsIdentity
ClaimsIdentity

claimsIdentity for the bot, should have AudienceClaim, AppIdClaim and ServiceUrlClaim.

conversationId
String

Conversation ID.

transcript
Transcript

Transcript of activities.

cancellationToken
CancellationToken

The cancellation token.

Returns

task for a resource response.

Remarks

Override this method to this method allows you to upload the historic activities to the conversation.

Sender must ensure that the historic activities have unique ids and appropriate timestamps. The ids are used by the client to deal with duplicate activities and the timestamps are used by the client to render the activities in the right order.

Applies to