ActionScope.OnBreakLoopAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Wordt aangeroepen bij het retourneren van het besturingselement naar dit dialoogvenster met een ActionScopeResult met de eigenschap ActionCommand ingesteld op BreakLoop.
protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> OnBreakLoopAsync(Microsoft.Bot.Builder.Dialogs.DialogContext dc, Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ActionScopeResult actionScopeResult, System.Threading.CancellationToken cancellationToken = default);
abstract member OnBreakLoopAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ActionScopeResult * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
override this.OnBreakLoopAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ActionScopeResult * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
Protected Overridable Function OnBreakLoopAsync (dc As DialogContext, actionScopeResult As ActionScopeResult, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DialogTurnResult)
Parameters
De dialoogvenstercontext voor de huidige wending van het gesprek.
- actionScopeResult
- ActionScopeResult
Bevat het resultaat van het actiebereik.
- cancellationToken
- CancellationToken
Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om een kennisgeving van annulering te ontvangen.
Retouren
Een Task die de asynchrone bewerking vertegenwoordigt.