signalr, webapi and autofac
<p>I have a SignalR 2 project that also uses WebApi and I'm trying to integrate AutoFac into this.</p>

<p>Initially, my Startup class looked like this:</p>

<pre><code>public class Startup
{
    public void Configuration(IAppBuilder app)
    {           
        app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll);

        app.MapSignalR();

        var httpConfig = new HttpConfiguration();

        httpConfig.MapHttpAttributeRoutes();

        app.UseWebApi(httpConfig);
    }
}
</code></pre>

<p>which doesn't use autofac and everything works fine. Now, I'm trying to add in AutoFac so I changed my Startup class to look like this:</p>

<pre><code>    public void Configuration(IAppBuilder app)
    {
        var builder = new ContainerBuilder();

        var httpConfig = new HttpConfiguration();
        var hubConfig = new HubConfiguration();

        // Register your Web API controllers.
        builder.RegisterApiControllers(Assembly.GetExecutingAssembly());
        builder.RegisterHubs(Assembly.GetExecutingAssembly());

        var container = builder.Build();
        httpConfig.DependencyResolver = new AutofacWebApiDependencyResolver(container);
        hubConfig.Resolver = new AutofacDependencyResolver(container);

        app.UseAutofacMiddleware(container);
        app.MapSignalR("/signalr", hubConfig);
        app.UseWebApi(httpConfig);            
    }
</code></pre>

<p>Now what happens is I'm not able to make calls to my controller, as I get a 404 each time I make a call, which worked before. What am I missing? On the autofac quickstart guide for <a href="http://autofac.readthedocs.io/en/latest/integration/webapi.html" rel="nofollow">web api</a> there is a call to app.UseAutofacWebApi(config), however, that method doesn't exist, so, not sure if that's the issue or what. </p>