Share via


IDialogTask 接口

定义

public interface IDialogTask : Microsoft.Bot.Builder.Base.IEventLoop, Microsoft.Bot.Builder.Base.IEventProducer<Microsoft.Bot.Connector.IActivity>, Microsoft.Bot.Builder.Dialogs.Internals.IDialogStack
type IDialogTask = interface
    interface IDialogStack
    interface IEventLoop
    interface IEventProducer<IActivity>
Public Interface IDialogTask
Implements IDialogStack, IEventLoop, IEventProducer(Of IActivity)
派生
实现

属性

Frames

堆栈上处于活动状态的对话框框架。

(继承自 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)
PollAsync(CancellationToken)

轮询目标以查找要完成的任何工作。

(继承自 IEventLoop)
Post(Event, Action) (继承自 IEventProducer<Event>)
Post<E>(E, ResumeAfter<E>)

将内部事件发布到队列。

(继承自 IDialogStack)
Reset()

重置堆栈。

(继承自 IDialogStack)
Wait<R>(ResumeAfter<R>)

暂停当前对话框,直到将外部事件发送到机器人。

(继承自 IDialogStack)

扩展方法

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

调用子对话,将其添加到堆栈顶部,并将消息发布到子对话。

Wait(IDialogStack, ResumeAfter<IMessageActivity>)

暂停当前对话框,直到用户向机器人发送消息。

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

使用新对话中断等待对话

适用于