title: AutoFac + ReactiveUI ViewFor<IViewModelType> Registration
body: <p>I'm new to AutoFac (and ReactiveUI!) and I'm having an issue registering a View with the container.</p>
  
  <p>The View has the signature:</p>
  
  <pre><code>public partial class DataSelectView : IViewFor&lt;IDataSelectViewModel&gt;
  </code></pre>
  
  <p>I have the following registrations with the container already set up:</p>
  
  <pre><code>builder.RegisterType&lt;DataSelectView&gt;().As&lt;IViewFor&lt;IDataSelectViewModel&gt;&gt;();
  builder.RegisterType&lt;DataSelectViewModel&gt;().As&lt;IDataSelectViewModel&gt;();
  </code></pre>
  
  <p>When I run the program I find that AutoFac is trying to resolve <code>IViewFor&lt;DataSelectViewModel&gt;</code> rather than <code>IViewFor&lt;IDataSelectViewModel&gt;</code> and therefore throws an error saying it can't find <code>IViewFor&lt;DataSelectViewModel&gt;.</code></p>
  
  <p>I don't want to change the View declaration to <code>: IViewFor&lt;DataSelectViewModel&gt;</code> as I want to maintain the flexibility to change the registration of <code>IDataSelectViewModel</code> to some other default implementation in the future when necessary.</p>
  
  <p>I feel like I'm making an easy mistake here but can't work out how to resolve it! Any help much appreciated.</p>