title: Autofac WebApi 2 OWIN Not Working
body: <p>Having an issue with Autofac and WebApi2 using OWIN. Basically the Constructor isn't getting Injected.</p>
  
  <pre><code>public class Startup
  {
      public void Configuration(IAppBuilder app)
      {
          var config = new HttpConfiguration();
          config.MapHttpAttributeRoutes();
  
          config.Routes.MapHttpRoute(
              name: "Default Route",
              routeTemplate: "{controller}.{ext}"
          );
  
          config.Routes.MapHttpRoute(
              name: "Default Route with Id",
              routeTemplate: "{controller}/{id}.{ext}",
              defaults: new { id = RouteParameter.Optional }
          );
  
          var builder = new ContainerBuilder();
  
          builder.RegisterApiControllers(Assembly.GetExecutingAssembly());
          builder.Register(c =&gt; new Logger()).As&lt;ILogger&gt;().InstancePerRequest();
  
          var container = builder.Build();
          var resolver = new AutofacWebApiDependencyResolver(container);
          GlobalConfiguration.Configuration.DependencyResolver = resolver;
  
          app.UseAutofacWebApi(GlobalConfiguration.Configuration);
          app.UseWebApi(config);
      }
  }
  
  public class UsersController : ApiController
  {
      private readonly ILogger _logger;
  
      public UsersController(ILogger logger)
      {
           _logger = logger;
      }
  }
  </code></pre>
  
  <p>I'm using the Autofac.Integration.Owin nuget alpha package. What am I missing?</p>