Freigeben über


ActivityHandler.OnInstallationUpdateAddAsync Methode

Definition

Überschreiben Sie dies in einer abgeleiteten Klasse, um spezifische Logik für InstallationUpdate Aktivitäten bereitzustellen, wobei "action" auf "add" festgelegt ist.

protected virtual System.Threading.Tasks.Task OnInstallationUpdateAddAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInstallationUpdateActivity> turnContext, System.Threading.CancellationToken cancellationToken);
abstract member OnInstallationUpdateAddAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInstallationUpdateActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnInstallationUpdateAddAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInstallationUpdateActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnInstallationUpdateAddAsync (turnContext As ITurnContext(Of IInstallationUpdateActivity), cancellationToken As CancellationToken) As Task

Parameter

turnContext
ITurnContext<IInstallationUpdateActivity>

Ein stark typisiertes Kontextobjekt für diesen Turn.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um Nachricht vom Abbruch zu empfangen.

Gibt zurück

Eine Aufgabe, die die auszuführende Arbeit in der Warteschlange darstellt.

Hinweise

Wenn die OnTurnAsync(ITurnContext, CancellationToken) -Methode eine Installationsaktualisierungsaktivität empfängt, ruft sie diese Methode auf.

Gilt für:

Weitere Informationen