Udostępnij przez


TeamsActivityHandler.OnTeamsMessagingExtensionConfigurationSettingAsync Method

Definition

Override this in a derived class to provide logic for when a configuration is set for a messaging extension.

protected virtual System.Threading.Tasks.Task OnTeamsMessagingExtensionConfigurationSettingAsync(Microsoft.Agents.Builder.ITurnContext<Microsoft.Agents.Core.Models.IInvokeActivity> turnContext, System.Text.Json.JsonElement settings, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMessagingExtensionConfigurationSettingAsync : Microsoft.Agents.Builder.ITurnContext<Microsoft.Agents.Core.Models.IInvokeActivity> * System.Text.Json.JsonElement * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsMessagingExtensionConfigurationSettingAsync : Microsoft.Agents.Builder.ITurnContext<Microsoft.Agents.Core.Models.IInvokeActivity> * System.Text.Json.JsonElement * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsMessagingExtensionConfigurationSettingAsync (turnContext As ITurnContext(Of IInvokeActivity), settings As JsonElement, cancellationToken As CancellationToken) As Task

Parameters

turnContext
ITurnContext<IInvokeActivity>

A strongly-typed context object for this turn.

settings
JsonElement

Object representing the configuration settings.

cancellationToken
CancellationToken

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

Returns

A task that represents the work queued to execute.

Applies to