How to pop to root dialog with bot framework?

Viewed 1437

I'm using the .Net backend for my bot based on the bot framework. In one of my dialogs I give the user the option to return to the root dialog - or at least, that's what I'm trying to do but no success. Here's what I have already tried:

  • call context.Reset() - I learned that I may not use this from inside a dialog; it causes a crash
  • Conversation.SendAsync((IMessageActivity)context.Activity, () => new RootDialog()) - does not seem to do anything

Ideally I just want to get back to what is first on the stack without having to hardcode the RootDialog type.

1 Answers
Related