예제 #1
0
        public static void RegisterIoc(HttpConfiguration config)
        {
            ConfigureIoC();
            config.DependencyResolver = new IoCContainer(_ioc);

            IControllerFactory factory = new UnityControllerFactory(_ioc);
            ControllerBuilder.Current.SetControllerFactory(factory);
        }
예제 #2
0
        public static void RegisterIoc(HttpConfiguration config)
        {
            ConfigureIoC();
            config.DependencyResolver = new IoCContainer(_ioc);

            IControllerFactory factory = new UnityControllerFactory(_ioc);

            ControllerBuilder.Current.SetControllerFactory(factory);
        }