title: autofac webapi integration RegisterApiControllers
body: <p>Doesn't <code>RegisterApiControllers</code>'s extension method register <code>ApiController</code> with parameter in the constructor?</p>
  
  <p>My code doesn't work like many examples show</p>
  
  <p>[Application_start]</p>
  
  <pre><code>var builder = new ContainerBuilder();
  builder.RegisterType&lt;Coso&gt;().As&lt;ICoso&gt;().InstancePerRequest();  //register my type
  builder.RegisterApiControllers(Assembly.GetExecutingAssembly());  //register controller with autofac WebApi2 integration
  var container = builder.Build();
  var config = GlobalConfiguration.Configuration;
  config.DependencyResolver = new AutofacWebApiDependencyResolver(container);  //set the webapi dependecy resolver
  </code></pre>
  
  <p>[Controller]</p>
  
  <pre><code>public class ValuesController : ApiController
  {
      public ValuesController(ICoso coso)
      { 
  
      }
  
      // GET api/values
      public IEnumerable&lt;string&gt; Get()
      {
          return new string[] { "value1", "value2" };
      }
  }
  </code></pre>
  
  <p>Error: </p>
  
  <blockquote>
    <p>no parameter less constructor defined for this object</p>
  </blockquote>