protected void Application_Start() { AreaRegistration.RegisterAllAreas(); // Autofac line to add AutofacWebapiConfig.Initialize(GlobalConfiguration.Configuration); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
public static void Run() { //Configure AutoFac AutofacWebapiConfig.Initialize(GlobalConfiguration.Configuration); }
public static void Run(HttpConfiguration config) { // Configure Autofac AutofacWebapiConfig.Initialize(config); }