title: Asp.net Identity with Dependency Injection
body: <p>I'm applying asp.net identity with repository pattern and having some trouble.
  In Unity, I see it register as below (it's runned):</p>
  
  <pre><code>container.RegisterType&lt;IUserStore&lt;IdentityUser, Guid&gt;, UserStore&gt;(new TransientLifetimeManager());
  container.RegisterType&lt;RoleStore&gt;(new TransientLifetimeManager());
  </code></pre>
  
  <p>Now I want to register by using Autofac, especial the first register code but I can't find anything about this. 
  If you have another solution for apply asp net identity with repository pattern. </p>