title: Bot Framework stuck in a Dialog Loop
body: <p>I am using Bot Framework for one of my project. It seems to be stuck in a loop while processing reply from a PromptDialog.Confirm function.</p>
  
  <pre><code>namespace Genome
  {
  public class InitiateDialog : IDialog&lt;object&gt;
  {
      public async Task StartAsync(IDialogContext context)
      {
          context.Wait(ConversationStarted);
      }
  
      public async Task ConversationStarted(IDialogContext context, IAwaitable&lt;IMessageActivity&gt; message)
      {
          await context.PostAsync("Hi!");
          PromptDialog.Confirm(
              context: context,
              resume: ResumeAndPromptPlatformAsync,
              prompt: "Would you like to upload the document?",
              retry: "I didn't understand. Please try again."
              );
      }
  
      public async Task ResumeAndPromptPlatformAsync(IDialogContext context, IAwaitable&lt;bool&gt; result)
      {
          await context.PostAsync("Input Received");
      }
  }
  }
  </code></pre>
  
  <p>The execution of this code never reaches the ResumeAndPromptPlatformAsync function. Every-time I choose Yes/No at the PromptDialog.Confirm() the Bot Emulator loops back to start with ConversationStarted() and asks the same question again.</p>