Delen via


DialogExtensions.RunAsync Methode

Definitie

Hiermee maakt u een dialoogvensterstack en start u een dialoogvenster dat naar de stack wordt gepusht.

public static System.Threading.Tasks.Task RunAsync(this Microsoft.Bot.Builder.Dialogs.Dialog dialog, Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.IStatePropertyAccessor<Microsoft.Bot.Builder.Dialogs.DialogState> accessor, System.Threading.CancellationToken cancellationToken);
static member RunAsync : Microsoft.Bot.Builder.Dialogs.Dialog * Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.IStatePropertyAccessor<Microsoft.Bot.Builder.Dialogs.DialogState> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function RunAsync (dialog As Dialog, turnContext As ITurnContext, accessor As IStatePropertyAccessor(Of DialogState), cancellationToken As CancellationToken) As Task

Parameters

dialog
Dialog

Het dialoogvenster dat moet worden gestart.

turnContext
ITurnContext

De context voor de huidige wending van het gesprek.

accessor
IStatePropertyAccessor<DialogState>

De IStatePropertyAccessor<T> accessor waarmee de status van de dialoogvensterstack wordt beheerd.

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.

Van toepassing op