Language

InvokeHandler Delegate

Definition

Represents a method that handles an invocation request and returns a response asynchronously.

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

Parameters

context
Context<InvokeActivity>

The context for the invocation, containing request data and metadata required to process the operation. Cannot be null.

cancellationToken
CancellationToken

A cancellation token that can be used to cancel the operation. The default value is None.

Return Value

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

Applies to