Share via


TwilioAdapter.ContinueConversationAsync Method

Definition

Overloads

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

Sends a proactive message to a conversation.

ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Sends a proactive message from the bot to a conversation.

ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

Sends a proactive message to a conversation.

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 reference to the conversation to continue.

logic
BotCallbackHandler

The method to call for the resulting bot turn.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Exceptions

reference or logic is null.

Remarks

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

See also

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