Sprache

ActivityHandler.OnAdaptiveCardInvokeAsync Methode

Definition

Wird aufgerufen, wenn der Bot eine Aktion für adaptive Karten gesendet wird.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.AdaptiveCardInvokeResponse> OnAdaptiveCardInvokeAsync(Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.AdaptiveCardInvokeValue invokeValue, System.Threading.CancellationToken cancellationToken);
abstract member OnAdaptiveCardInvokeAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.AdaptiveCardInvokeValue * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.AdaptiveCardInvokeResponse>
override this.OnAdaptiveCardInvokeAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.AdaptiveCardInvokeValue * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.AdaptiveCardInvokeResponse>
Protected Overridable Function OnAdaptiveCardInvokeAsync (turnContext As ITurnContext(Of IInvokeActivity), invokeValue As AdaptiveCardInvokeValue, cancellationToken As CancellationToken) As Task(Of AdaptiveCardInvokeResponse)

Parameter

turnContext
ITurnContext<IInvokeActivity>

Ein stark typisiertes Kontextobjekt für diese Runde.

invokeValue
AdaptiveCardInvokeValue

Ein stark typisiertes Objekt aus dem Wert der eingehenden Aktivität.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Eine Aufgabe, die die auszuführende Arbeitswarteschlange darstellt.

Hinweise

Wenn die Methode OnInvokeActivityAsync(ITurnContext<IInvokeActivity>, CancellationToken) einen Aufruf mit einem Name von 'adaptiveCard/action' erhält, ruft sie diese Methode auf.

Gilt für:

Weitere Informationen