Taal

DialogExtensions.RunAsync Methode

Definitie

Hiermee maakt u een dialoogvensterstack en start u een dialoogvenster, waarbij u het naar de stack pusht.

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

De dialoog om te beginnen.

turnContext
ITurnContext

De context voor de huidige wending van het gesprek.

accessor
IStatePropertyAccessor<DialogState>

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

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Een Task weergave van de asynchrone bewerking.

Van toepassing op