BotStateSet.SaveAllChangesAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Enregistrez toutes les modifications botState en parallèle.
public System.Threading.Tasks.Task SaveAllChangesAsync(Microsoft.Bot.Builder.ITurnContext turnContext, bool force = false, System.Threading.CancellationToken cancellationToken = default);
member this.SaveAllChangesAsync : Microsoft.Bot.Builder.ITurnContext * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SaveAllChangesAsync (turnContext As ITurnContext, Optional force As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Task
Paramètres
- turnContext
- ITurnContext
contexte de tour.
- force
- Boolean
doit être forcé d’enregistrer les données même si aucune modification n’a été détectée.
- cancellationToken
- CancellationToken
Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.
Retours
Tâche qui représente le travail mis en file d’attente à exécuter.