FacebookAdapter.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(ConversationReference, BotCallbackHandler, CancellationToken) |
Sends a proactive message to a conversation using a conversation reference. |
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 using 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 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
logic
or
reference
is null.
Remarks
Call this method to proactively send a message to a conversation.
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.
This method registers the following services for the turn.
- IIdentity (key = "BotIdentity"), a claims claimsIdentity for the bot.