共用方式為


WebexAdapter.ContinueConversationAsync 方法

定義

多載

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

標準 BotBuilder 配接器方法,可根據交談參考繼續現有的交談。

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

將主動式訊息從 Bot 傳送至交談。

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

標準 BotBuilder 配接器方法,可根據交談參考繼續現有的交談。

public System.Threading.Tasks.Task ContinueConversationAsync(Microsoft.Bot.Schema.ConversationReference reference, Microsoft.Bot.Builder.BotCallbackHandler logic, System.Threading.CancellationToken cancellationToken);
override this.ContinueConversationAsync : Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ContinueConversationAsync (reference As ConversationReference, logic As BotCallbackHandler, cancellationToken As CancellationToken) As Task

參數

reference
ConversationReference

ConversationReference要套用至未來訊息的 。

logic
BotCallbackHandler

將執行繼續動作的 Bot 邏輯函式。

cancellationToken
CancellationToken

工作的解除標記。

傳回

代表非同步作業的 Task

適用於

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

將主動式訊息從 Bot 傳送至交談。

public override System.Threading.Tasks.Task ContinueConversationAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Bot.Schema.ConversationReference reference, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, reference As ConversationReference, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task

參數

claimsIdentity
ClaimsIdentity

ClaimsIdentity交談的 。

reference
ConversationReference

要繼續之交談的參考。

callback
BotCallbackHandler

要呼叫結果 Bot 回合的方法。

cancellationToken
CancellationToken

取消權杖。

傳回

表示要執行之工作佇列的工作。

備註

呼叫這個方法,以主動將訊息傳送至交談。 大部分_channels要求使用者先初始化與 Bot 的對話,Bot 才能將活動傳送給使用者。

這個方法會註冊回合的下列服務。

  • IIdentity (金鑰 = 「BotIdentity」) ,這是 Bot 的宣告 claimsIdentity。

另請參閱

適用於