Jaa


TeamsActivityHandler.OnTeamsFileConsentAsync Method

Definition

Invoked when a file consent card activity is received from the connector.

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)

Parameters

turnContext
ITurnContext<IInvokeActivity>

A strongly-typed context object for this turn.

fileConsentCardResponse
FileConsentCardResponse

The response representing the value of the invoke activity sent when the user acts on a file consent card.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

An InvokeResponse depending on the action of the file consent card.

Applies to