title: How do I add multiple ComponentDialogs?
body: <p>I made a new ComponentDialog by creating a class for it that extends <code>ComponentDialog</code> like so:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class GetPersonInfoDialog : ComponentDialog
  {
          protected readonly ILogger Logger;
  
          public GetPersonInfoDialog(IConfiguration configuration, ILogger&lt;GetPersonInfoDialog&gt; logger)
              : base("get-person-info", configuration["ConnectionName"])
          { }
          // code ommitted
      }
  }
  </code></pre>
  
  <p>Then I added it in Startup.cs:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public void ConfigureServices(IServiceCollection services)
      {
  
          // ...
  
          services.AddSingleton&lt;GreetingDialog&gt;();
          services.AddTransient&lt;IBot, AuthBot&lt;GreetingDialog&gt;&gt;();
  
          // My new component dialog:
          services.AddSingleton&lt;GetPersonInfoDialog&gt;();
          services.AddTransient&lt;IBot, AuthBot&lt;GetPersonInfoDialog&gt;&gt;();
      }
  }
  </code></pre>
  
  <p>But what I noticed is that only the last Dialog gets used. GreetingDialog now no longer works, saying:</p>
  
  <blockquote>
    <p>DialogContext.BeginDialogAsync(): A dialog with an id of 'greeting' wasn't found. The dialog must be included in the current or parent DialogSet. For example, if subclassing a ComponentDialog you can call AddDialog() within your constructor.</p>
  </blockquote>
  
  <p>I did notice, however, that the GetPersonInfo dialog does indeed begin and the Greeting dialog doesn't anymore. It's like I can only use one or the other. I noticed only the last added "transient" gets used, as if it overrides the previous transients.</p>
  
  <p>How do I add <strong>multiple component dialogs</strong> in my Startup.cs file? Or am I even going about this correctly? I did not find any documentation explaining how to have multiple ComponentDialogs.</p>