Freigeben über


TeamsActivityHandler.OnTeamsConfigSubmitAsync Methode

Definition

Überschreiben Sie dies in einer abgeleiteten Klasse, um logik für den Zeitpunkt der Übermittlung einer Konfiguration bereitzustellen.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.ConfigResponseBase> OnTeamsConfigSubmitAsync(Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Newtonsoft.Json.Linq.JObject configData, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsConfigSubmitAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Newtonsoft.Json.Linq.JObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.ConfigResponseBase>
override this.OnTeamsConfigSubmitAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Newtonsoft.Json.Linq.JObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.ConfigResponseBase>
Protected Overridable Function OnTeamsConfigSubmitAsync (turnContext As ITurnContext(Of IInvokeActivity), configData As JObject, cancellationToken As CancellationToken) As Task(Of ConfigResponseBase)

Parameter

turnContext
ITurnContext<IInvokeActivity>

Ein stark typiertes Kontextobjekt für diese Drehung.

configData
Newtonsoft.Json.Linq.JObject

Die Nutzlast des Config Fetch-Aufrufs des Anforderungswerts.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Eine Config-Antwort für die Anforderung.

Gilt für: