title: Register HttpContext.User with Autofac
body: <p>I would like to do the following in Autofac, but not sure how?</p>
  
  <p>This is how you do it in StructureMap</p>
  
  <pre><code>ForRequestedType&lt;IPrincipal&gt;()
    .CacheBy(InstanceScope.Hybrid)
    .TheDefault.Is.ConstructedBy(ctx =&gt; HttpContext.Current.User);
  </code></pre>