Share via


WebexAdapter.ContinueConversationAsync Method

Definition

Overloads

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

Standard BotBuilder adapter method for continuing an existing conversation based on a conversation reference.

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Sends a proactive message from the bot to a conversation.

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

Standard BotBuilder adapter method for continuing an existing conversation based on a conversation reference.

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

Parameters

reference
ConversationReference

A ConversationReference to be applied to future messages.

logic
BotCallbackHandler

A bot logic function that will perform continuing action.

cancellationToken
CancellationToken

A cancellation token for the task.

Returns

A Task representing the asynchronous operation.

Applies to

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Sends a proactive message from the bot to a conversation.

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

Parameters

claimsIdentity
ClaimsIdentity

A ClaimsIdentity for the conversation.

reference
ConversationReference

A reference to the conversation to continue.

callback
BotCallbackHandler

The method to call for the resulting bot turn.

cancellationToken
CancellationToken

Cancellation token.

Returns

A task that represents the work queued to execute.

Remarks

Call this method to proactively send a message to a conversation. Most _channels require a user to initialize a conversation with a bot before the bot can send activities to the user.

This method registers the following services for the turn.

  • IIdentity (key = "BotIdentity"), a claims claimsIdentity for the bot.

See also

Applies to