Share via


DialogTask Class

Definition

A dialog task is a

  1. single IDialogStack stack of IDialog frames, waiting on the next IActivity
  2. the IEventProducer<Event> queue of activity events necessary to satisfy those waits
  3. the IEventLoop loop to execute that dialog code once the waits are satisfied
public sealed class DialogTask : Microsoft.Bot.Builder.Base.IEventProducer<Microsoft.Bot.Connector.IActivity>, Microsoft.Bot.Builder.Dialogs.Internals.IDialogTask
type DialogTask = class
    interface IDialogTask
    interface IDialogStack
    interface IEventLoop
    interface IEventProducer<IActivity>
Public NotInheritable Class DialogTask
Implements IDialogTask, IEventProducer(Of IActivity)
Inheritance
DialogTask
Implements

Constructors

DialogTask(Func<CancellationToken,IDialogContext>, IStore<IFiberLoop<DialogTask>>, IEventProducer<IActivity>)

Explicit Interface Implementations

IDialogStack.Call<R>(IDialog<R>, ResumeAfter<R>)
IDialogStack.Done<R>(R)
IDialogStack.Fail(Exception)
IDialogStack.Forward<R,T>(IDialog<R>, ResumeAfter<R>, T, CancellationToken)
IDialogStack.Frames
IDialogStack.Post<E>(E, ResumeAfter<E>)
IDialogStack.Reset()
IDialogStack.Wait<R>(ResumeAfter<R>)
IEventLoop.PollAsync(CancellationToken)
IEventProducer<IActivity>.Post(IActivity, Action)

Extension Methods

Forward<R>(IDialogStack, IDialog<R>, ResumeAfter<R>, IMessageActivity, CancellationToken)

Call a child dialog, add it to the top of the stack and post the message to the child dialog.

Wait(IDialogStack, ResumeAfter<IMessageActivity>)

Suspend the current dialog until the user has sent a message to the bot.

InterruptAsync<T,R>(IDialogTask, IDialog<T>, R, CancellationToken)

Interrupt the waiting dialog with a new dialog

Applies to