title: How to register same type twice with different constructors in Unity?
body: <p>I'm trying to register the same type but with two different constructors.  When I trying to resolve, I get "<em>Resolution of the dependency failed</em>" on the second Resolve.</p>
  
  <pre><code>    var container = new UnityContainer();
  
      container.RegisterType&lt;IBar, Bar&gt;()
          .RegisterInstance(new Bar())
          .RegisterType&lt;IBar, Bar&gt;()
          .RegisterInstance(new Bar("foo"));
  
      Bar bar1 = (Bar)container.Resolve&lt;IBar&gt;();
      Bar bar2 = (Bar)container.Resolve&lt;IBar&gt;("foo");  // ERROR
  </code></pre>
  
  <p>What I'm doing wrong?</p>