語言

ContinueConversationLater 類別

定義

安排目前對話稍後繼續的行動......

public class ContinueConversationLater : Microsoft.Bot.Builder.Dialogs.Dialog
type ContinueConversationLater = class
    inherit Dialog
Public Class ContinueConversationLater
Inherits Dialog
繼承
ContinueConversationLater

備註

此動作透過寫入 EventActivity(Name=ContinueConversation) 到與當前對話參考相同的路由資訊的 StorageQueue,並搭配可見性政策,讓未來某個時間點可見。

佇列需要一個程序(例如 webjob/azure 函式)從 StorageQueue 拉取活動,並透過呼叫介面卡來處理。ProcessActivity(活動,...);

注意:若有多個介面卡,此 webjob/function 應檢查 activity.channelId,以正確路由活動至適當的介面卡。

此對話框回傳已排隊活動的收據資訊,作為對話結果。 <另見 cref=“T:Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ContinueConversation“></參見>

建構函式

名稱 Description
ContinueConversationLater(String, Int32)

初始化 ContinueConversationLater 類別的新執行個體。

欄位

名稱 Description
Kind

這段對話的名稱是 Kind。

屬性

名稱 Description
Date

取得或設定表達式,該表達式會解析到繼續對話的日期/時間。

Disabled

取得或設定一個可選表達式,若為真則會停用此動作。

Id

取得或設定對話的 ID。

(繼承來源 Dialog)
Source

取得 cref=“SourceRange”/> 的資訊。

(繼承來源 Dialog)
TelemetryClient

取得或設定 IBotTelemetryClient 用於記錄。

(繼承來源 Dialog)
Value

取得或設定一個可選的 EventActivity.Value 值。

方法

名稱 Description
BeginDialogAsync(DialogContext, Object, CancellationToken)

啟動對話框並推送至對話堆疊時呼叫。

ContinueDialogAsync(DialogContext, CancellationToken)

當對話 繼續時呼叫,當對話是進行中對話,使用者會回覆新的活動時。

(繼承來源 Dialog)
EndDialogAsync(ITurnContext, DialogInstance, DialogReason, CancellationToken)

對話框結束時呼叫。

(繼承來源 Dialog)
GetVersion()

會得到一個唯一字串,代表該對話框的版本。 如果之間的版本變更,對話系統將會發出 DialogChanged 事件。

(繼承來源 Dialog)
OnComputeId()

建立對話的計算 ID。

OnDialogEventAsync(DialogContext, DialogEvent, CancellationToken)

使用 DialogContext.emitEvent()引發事件時,由目前對話框或目前對話框啟動的對話框呼叫。

(繼承來源 Dialog)
OnPostBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)

在事件向所有家長泡泡後呼叫,但未處理。

(繼承來源 Dialog)
OnPreBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)

在事件反升至其父系之前呼叫。

(繼承來源 Dialog)
RegisterSourceLocation(String, Int32)

在指定位置註冊 cref=“SourceRange”/> 。

(繼承來源 Dialog)
RepromptDialogAsync(ITurnContext, DialogInstance, CancellationToken)

當對話框應該重新提示使用者輸入時呼叫。

(繼承來源 Dialog)
ResumeDialogAsync(DialogContext, DialogReason, Object, CancellationToken)

當子對話完成此回合時呼叫,將控件傳回此對話方塊。

(繼承來源 Dialog)

擴充方法

名稱 Description
RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken)

建立對話堆疊並啟動對話,並將它推送至堆疊。

適用於