BotAdapter.ContinueConversationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ContinueConversationAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken) |
Sends a proactive message to a conversation. |
ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken) |
Sends a proactive message to a conversation. |
ContinueConversationAsync(String, Activity, BotCallbackHandler, CancellationToken) |
Sends a proactive message to a conversation. |
ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken) |
Sends a proactive message to a conversation. |
ContinueConversationAsync(ClaimsIdentity, Activity, String, BotCallbackHandler, CancellationToken) |
Sends a proactive message to a conversation. |
ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken) |
Sends a proactive message to a conversation. |
ContinueConversationAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)
Sends a proactive message to a conversation.
public virtual System.Threading.Tasks.Task ContinueConversationAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Bot.Schema.Activity continuationActivity, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, continuationActivity As Activity, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- claimsIdentity
- ClaimsIdentity
A ClaimsIdentity for the conversation.
- continuationActivity
- Activity
An Activity with the appropriate ConversationReference with which to continue the conversation.
- callback
- 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.
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 to a conversation.
public virtual System.Threading.Tasks.Task ContinueConversationAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Bot.Schema.ConversationReference reference, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable 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
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.
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(String, Activity, BotCallbackHandler, CancellationToken)
Sends a proactive message to a conversation.
public virtual System.Threading.Tasks.Task ContinueConversationAsync (string botId, Microsoft.Bot.Schema.Activity continuationActivity, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : string * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : string * Microsoft.Bot.Schema.Activity * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (botId As String, continuationActivity As Activity, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- botId
- String
The application ID of the bot. This parameter is ignored in single tenant the Adapters (Console, Test, etc) but is critical to the BotFrameworkAdapter which is multi-tenant aware.
- continuationActivity
- Activity
An Activity with the appropriate ConversationReference with which to continue the conversation.
- callback
- 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.
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(String, ConversationReference, BotCallbackHandler, CancellationToken)
Sends a proactive message to a conversation.
public virtual System.Threading.Tasks.Task ContinueConversationAsync (string botId, Microsoft.Bot.Schema.ConversationReference reference, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : string * Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : string * Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (botId As String, reference As ConversationReference, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- botId
- String
The application ID of the bot. This parameter is ignored in single tenant the Adapters (Console, Test, etc) but is critical to the BotFrameworkAdapter which is multi-tenant aware.
- reference
- ConversationReference
A reference to the conversation to continue.
- callback
- 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.
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, Activity, String, BotCallbackHandler, CancellationToken)
Sends a proactive message to a conversation.
public virtual System.Threading.Tasks.Task ContinueConversationAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Bot.Schema.Activity continuationActivity, string audience, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.Activity * string * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.Activity * string * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, continuationActivity As Activity, audience As String, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- claimsIdentity
- ClaimsIdentity
A ClaimsIdentity for the conversation.
- continuationActivity
- Activity
An Activity with the appropriate ConversationReference with which to continue the conversation.
- audience
- String
A value signifying the recipient of the proactive message.
- callback
- 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.
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, String, BotCallbackHandler, CancellationToken)
Sends a proactive message to a conversation.
public virtual System.Threading.Tasks.Task ContinueConversationAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Bot.Schema.ConversationReference reference, string audience, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.ConversationReference * string * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Bot.Schema.ConversationReference * string * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, reference As ConversationReference, audience As String, 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.
- audience
- String
A value signifying the recipient of the proactive message.
- callback
- 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.
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.