title: AutoFac LifeTime: Force new instance in specific situation
body: <p>I have the following configuration:</p>
  
  <pre><code>builder.Register&lt;EntityContext&gt;().As(
     c=&gt; {
         var entityCtx = new EntityContext();
         //snip snip: some config stuff
  
         return entityCtx;
     }).As&lt;MyDbContext&gt;().InstancePerLifetimeScope();
  </code></pre>
  
  <p><code>EntityContext</code> obviously inherits from <code>MyDbContext</code> which again inherits from <code>DbContext</code>.</p>
  
  <p>In my repository's constructor I'm usually using them as</p>
  
  <pre><code>...
  public MyRepository(MyDbContext context) {...}
  </code></pre>
  
  <p>This ensures to have <strong>one ctx per http request</strong> which is what I want. But now I have the need that for a specific repository I want to have a <strong>different instance</strong> of the EntityContext than is normally being used.</p>
  
  <p>How would you achieve that? The following came to my mind:</p>
  
  <ul>
  <li>Another config where I use <code>Register&lt;EntityContext&gt;()....As&lt;DbContext&gt;()...</code></li>
  </ul>
  
  <p>Any other ideas?</p>