protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); WindsorControllerFactory.ConfigureIoC(); }
public static void ConfigureIoC() { if (container == null) { InitIoC(); } var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); }
protected void Application_End() { WindsorControllerFactory.Dispose(); }