title: Castle Windsor to Unity - can you auto-configure in Unity the same way you can in CW?
body: <p>I don't know if this is too specific a question, if that is possible, but I'm having to port an app that uses Castle Windsor to Unity so that there isn't a reliance on non-microsoft approved libraries. I know I know but what are you going to do.</p>
  
  <p>Anyway I've managed it but I'm not happy with what I've got. In Windsor I had this:</p>
  
  <pre><code>Register(
              AllTypes.Of(typeof(AbstractPresenter&lt;&gt;)).FromAssemblyNamed("Links.Mvp"),
              AllTypes.Of(typeof(IView)).FromAssemblyNamed("Links.WinForms").WithService.FromInterface());
  </code></pre>
  
  <p>which I've converted to this in unity</p>
  
  <pre><code>RegisterType&lt;IMainView, MainView&gt;();
          RegisterType&lt;IConfigureLinkView, ConfigureLinkView&gt;();
          RegisterType&lt;IConfigureSourceView, ConfigureSourceView&gt;();
          RegisterType&lt;IConfigureSinkView, ConfigureSinkView&gt;();
          RegisterType&lt;MainPresenter, MainPresenter&gt;();
          RegisterType&lt;ConfigureLinkPresenter, ConfigureLinkPresenter&gt;();
          RegisterType&lt;ConfigureSourcePresenter, ConfigureSourcePresenter&gt;();
          RegisterType&lt;ConfigureSinkPresenter, ConfigureSinkPresenter&gt;();
  </code></pre>
  
  <p>As you can see I'm having to register every single thing rather than be able to use some sort of auto-configuration. So my question is: is there a better way of doing this in unity?</p>
  
  <p>Thanks,</p>
  
  <p>Adam.</p>