Autofac Resolve from new lifetimeScope
<p>Is there any way to tell Autofac to resolve a component from a new lifetime scope?</p>

<p>Meaning:</p>

<pre><code>containerBuilder.RegisterType&lt;Layer1&gt;().As&lt;ILayer1&gt;().SingleInstance(); 
containerBuilder.RegisterType&lt;Layer2&gt;().As&lt;ILayer2&gt;().SingleInstance(); 
containerBuilder.RegisterType&lt;Layer3&gt;().As&lt;ILayer3&gt;().SingleInstance(); 
containerBuilder.RegisterType&lt;MyContainer&gt;().As&lt;IContainer&gt;().SingleInstance(); 
containerBuilder.RegisterType&lt;Layer1&gt;().As&lt;ILayer&gt;().SingleInstance(); 
containerBuilder.RegisterType&lt;IRepository&lt;Folder&gt;&gt;().As&lt;FoldersRepository&gt;().InstancePerDependency();
</code></pre>

<p>MyContainer takes all the Layers in his ctor.
Though I want Layer1 for example to be resolved in a new lifetimeScope. Is there a way to do so by specifying it in the registration instead of resolving it manually from a new life time scope??    </p>

<pre><code>using (var myLifeTimeScope = container.BeginLifetimeScope()) 
{ 
   var myLayer1=mylLifeTimeScope.Resolve&lt;ILayer&gt;(); 
} 

using (var myLifeTimeScope = container.BeginLifetimeScope()) 
{ 
   var container=mylLifeTimeScope.Resolve&lt;IContainer&gt;(); 
} 
</code></pre>