Compartilhar via


CloudSkillHandler.OnUpdateActivityAsync Método

Definição

API OnUpdateActivityAsync().

protected override System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> OnUpdateActivityAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, string conversationId, string activityId, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
override this.OnUpdateActivityAsync : System.Security.Claims.ClaimsIdentity * string * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Protected Overrides Function OnUpdateActivityAsync (claimsIdentity As ClaimsIdentity, conversationId As String, activityId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parâmetros

claimsIdentity
ClaimsIdentity

claimsIdentity para o bot deve ter AudienceClaim, AppIdClaim e ServiceUrlClaim.

conversationId
String

ID da conversa.

activityId
String

activityId a ser atualizado.

activity
Activity

Atividade de substituição.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

tarefa para uma resposta de recurso.

Aplica-se a