title: What does AsSelf do in autofac?
body: <p>What is <code>AsSelf()</code> in autofac?
  I am new to autofac, what exactly is <code>AsSelf</code> and what are the difference between the two below?</p>
  
  <pre><code>builder.RegisterType&lt;SomeType&gt;().AsSelf().As&lt;IService&gt;();
  builder.RegisterType&lt;SomeType&gt;().As&lt;IService&gt;();
  </code></pre>
  
  <p>Thank you!</p>