IDialogTask 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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) |
调用一个子对话框,将其添加到栈顶部,并将消息发布到子对话框中。 |
| InterruptAsync<T,R>(IDialogTask, IDialog<T>, R, CancellationToken) |
用新的对话中断等待中的对话 |
| Wait(IDialogStack, ResumeAfter<IMessageActivity>) |
暂停当前对话,直到用户向机器人发送消息。 |