ConfigHandlerAsync Delegate

Definition

Function for handling config events.

public delegate System.Threading.Tasks.Task<Microsoft.Agents.Extensions.Teams.Models.ConfigResponseBase> ConfigHandlerAsync(ITurnContext turnContext, ITurnState turnState, object configData, CancellationToken cancellationToken);
type ConfigHandlerAsync = delegate of ITurnContext * ITurnState * obj * CancellationToken -> Task<ConfigResponseBase>
Public Delegate Function ConfigHandlerAsync(turnContext As ITurnContext, turnState As ITurnState, configData As Object, cancellationToken As CancellationToken) As Task(Of ConfigResponseBase) 

Parameters

turnContext
ITurnContext

A strongly-typed context object for this turn.

turnState
ITurnState

The turn state object that stores arbitrary data for this turn.

configData
Object

The config data.

cancellationToken
CancellationToken

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

Return Value

An instance of ConfigResponseBase.

Applies to