語言

DialogTask 類別

定義

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
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)
繼承
DialogTask
實作

建構函式

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

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼

明確介面實作

名稱 Description
IDialogStack.Call<R>(IDialog<R>, ResumeAfter<R>)

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
IDialogStack.Done<R>(R)

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
IDialogStack.Fail(Exception)

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
IDialogStack.Forward<R,T>(IDialog<R>, ResumeAfter<R>, T, CancellationToken)

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
IDialogStack.Frames

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
IDialogStack.Post<E>(E, ResumeAfter<E>)

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
IDialogStack.Reset()

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
IDialogStack.Wait<R>(ResumeAfter<R>)

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
IEventLoop.PollAsync(CancellationToken)

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼
IEventProducer<IActivity>.Post(IActivity, Action)

對話任務是

  1. 一IDialogStack疊畫面,等待下一組IDialogIActivity
  2. 為 IEventProducer<Event> 滿足這些等待時間所需的活動事件佇列
  3. IEventLoop迴圈在等待完成後執行該對話程式碼

擴充方法

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

呼叫一個子對話框,將其加入堆疊頂端,並將訊息貼入子對話框。

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

用新的對話中斷等待的對話

Wait(IDialogStack, ResumeAfter<IMessageActivity>)

暫停目前對話,直到使用者向機器人發送訊息。

適用於