title: UnityContainer can't resolve type
body: <p>I have a problem with resolving a type which is registered in UnityContainer. In my bootstraper I overrode ConfigureContainer method. Now this method looks like this</p>
  
  <pre><code> protected override void ConfigureContainer()
      {
  
          base.ConfigureContainer();
          RegisterTypeIfMissing(typeof(IView&lt;ShellViewModel&gt;), typeof(Shell), false);
          RegisterTypeIfMissing(typeof(CommandReaderWriter), typeof(CommandReaderWriter), true);
      }
  </code></pre>
  
  <p>Then in function CreateShell (also in bootstraper) I want to get the instance of type CommandReaderWriter so I did this</p>
  
  <pre><code>var raeder = Container.TryResolve&lt;CommandReaderWriter&gt;();
  </code></pre>
  
  <p>unfortunatelly this returns null value. I also tried </p>
  
  <pre><code>var anotherReader = Container.TryResolve(typeof (CommandReaderWriter));
  </code></pre>
  
  <p>but it didn't do a trick. However, interesting is the fact that </p>
  
  <pre><code> var isRegistered = Container.IsTypeRegistered(typeof (CommandReaderWriter));
  </code></pre>
  
  <p>returns true.</p>
  
  <p>so what is approperiate way to register singletone in UnityContainer ?</p>