title: Autofac difference between Register and RegisterType
body: <p>I have started to use Autofac following this tutorials:
  <a href="http://flexamusements.blogspot.com/2010/09/dependency-injection-part-3-making-our.html" rel="noreferrer">http://flexamusements.blogspot.com/2010/09/dependency-injection-part-3-making-our.html</a></p>
  
  <p><b>Simple class with no parameter in the constructor</b></p>
  
  <pre><code>builder.RegisterType&lt;ConsoleOutputService&gt;().As&lt;IOutputService&gt;();
  </code></pre>
  
  <p>As explained in the tutorial, the code above can be read as: setup ConsoleOutputService as the implementation of IOutputService</p>
  
  <p><b>Simple class with one parameter in the constructor</b></p>
  
  <pre><code>builder.Register(c =&gt; new MultipleOutputService(outputFilePath)).As&lt;IOutputService&gt;();
  </code></pre>
  
  <p>I don't understand why are we using a lambda expression to register this class (and what does this expression exactly does) and why we can't type this code</p>
  
  <pre><code>builder.RegisterType&lt;MultipleOutputService(outputFilePath)&gt;().As&lt;IOutputService&gt;();
  </code></pre>
  
  <p>Thanks in advance for your help</p>