Reputation: 731
it's not clear to me how to fire messages different than "Message" with Bot Framework using c#:
http://docs.botframework.com/connector/message-types/
For example I wish to send EndOfConversation message. I used to call
context.Done<string>(message);
but nothing seems to happen as
private Message HandleSystemMessage(Message message)
{
else if (message.Type == "UserAddedToConversation")
{
}
}
is not fired and state variables are not resetted.
How to fire this kind of events?
Thanks
Upvotes: 0
Views: 624
Reputation: 727
My understanding is that EndOfConversation
message is triggered by Bot Connector, for example in the case when user has closed the chat connection with the bot. context.Done
is used by the Dialog to indicate that the actual dialog has finished and we can access the result of the dialog, and it does not necessarily mean that the conversation with the user is over (for example, you may want to start another dialog in the same conversation).
Upvotes: 2