Delen via


TeamsActivityHandler.OnTeamsCardActionInvokeAsync Methode

Definitie

Wordt aangeroepen wanneer een aanroepactiviteit van de kaartactie wordt ontvangen van de connector.

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

Parameters

turnContext
ITurnContext<IInvokeActivity>

Een contextobject met een sterk type voor deze beurt.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om een kennisgeving van annulering te ontvangen.

Retouren

Een taak die het werk vertegenwoordigt dat in de wachtrij staat om uit te voeren.

Van toepassing op