Language

FileConsentValueHandler Delegate

Definition

Delegate for handling file consent invoke activities.

public delegate System.Threading.Tasks.Task<Microsoft.Teams.Apps.InvokeResponse<Microsoft.Teams.Apps.AdaptiveCardResponse>> FileConsentValueHandler(Context<InvokeActivity<FileConsentValue>> context, CancellationToken cancellationToken = default);
type FileConsentValueHandler = delegate of Context<InvokeActivity<FileConsentValue>> * CancellationToken -> Task<InvokeResponse<AdaptiveCardResponse>>
Public Delegate Function FileConsentValueHandler(context As Context(Of InvokeActivity(Of FileConsentValue)), Optional cancellationToken As CancellationToken = Nothing) As Task(Of InvokeResponse(Of AdaptiveCardResponse)) 

Parameters

context
Context<InvokeActivity<FileConsentValue>>

The context for the invoke activity, providing access to the activity data and bot application.

cancellationToken
CancellationToken

A cancellation token that can be used to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the invoke response.

Applies to