DialogTask Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A dialog task is a
- single IDialogStack stack of IDialog frames, waiting on the next IActivity
- the IEventProducer<Event> queue of activity events necessary to satisfy those waits
- 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
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 |