Språk

TeamsActivityHandler.OnTeamsFileConsentAsync Metod

Definition

Anropas när en filmedgivandekortaktivitet tas emot från anslutningsappen.

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)

Parametrar

turnContext
ITurnContext<IInvokeActivity>

Ett starkt typat kontextobjekt för denna tur.

fileConsentCardResponse
FileConsentCardResponse

Svaret som representerar värdet på anropsaktiviteten som skickas när användaren agerar på ett filsamtyckeskort.

cancellationToken
CancellationToken

En annulleringstoken som kan användas av andra objekt eller trådar för att få meddelande om annullering.

Returer

En InvokeResponse beroende på åtgärden för filmedgivandekortet.

Gäller för