Compartir a través de


CloudSkillHandler.OnUpdateActivityAsync Método

Definición

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 el bot, debe tener AudienceClaim, AppIdClaim y ServiceUrlClaim.

conversationId
String

Identificador de conversación.

activityId
String

activityId que se va a actualizar.

activity
Activity

actividad de reemplazo.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

tarea para una respuesta de recursos.

Se aplica a