TeamsActivityHandler.OnTeamsFileConsentAsync Methode

Definition

Wird aufgerufen, wenn eine Dateigenehmigungskartenaktivität vom Connector empfangen wird.

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

Parameter

turnContext
ITurnContext<IInvokeActivity>

Ein stark typisiertes Kontextobjekt für diese Runde.

fileConsentCardResponse
FileConsentCardResponse

Die Antwort, die den Wert der aufgerufenen Aktivität darstellt, die gesendet wird, wenn der Benutzer auf einer Datei-Zustimmungskarte agiert.

cancellationToken
CancellationToken

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

Gibt zurück

Ein InvokeResponse abhängig von der Aktion der Datei-Zustimmungskarte.

Gilt für: