Språk

Extensions.InterruptAsync<T,R> Metod

Definition

Avbryt den väntande dialogen med en ny dialog

public static System.Threading.Tasks.Task InterruptAsync<T,R>(this Microsoft.Bot.Builder.Dialogs.Internals.IDialogTask task, Microsoft.Bot.Builder.Dialogs.IDialog<T> dialog, R item, System.Threading.CancellationToken token);
static member InterruptAsync : Microsoft.Bot.Builder.Dialogs.Internals.IDialogTask * Microsoft.Bot.Builder.Dialogs.IDialog<'T> * 'R * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InterruptAsync(Of T, R) (task As IDialogTask, dialog As IDialog(Of T), item As R, token As CancellationToken) As Task

Typparametrar

T

Den typ av resultat som förväntas av dialogen.

R

Typen av objekt som postas i dialogen.

Parametrar

task
IDialogTask

Dialoguppgiften.

dialog
IDialog<T>

Den nya avbrutna dialogen.

item
R

Punkten att vidarebefordra till den nya avbrutande dialogen.

token
CancellationToken

Annulleringstoken.

Returer

En uppgift som representerar avbrottsoperationen.

Gäller för