Ejemplo n.º 1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

#if DEBUG
            //Die ProxyDateien werden nur im Debug Modus erstellt!
            List <Type> controllers = new List <Type>();
            controllers.Add(typeof(HomeController));
            AngularProxyBuilder builder = new AngularProxyBuilder(@"ScriptsApp\services");
            builder.StartBuildProcess(controllers);
#endif
        }
Ejemplo n.º 2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

#if DEBUG
            //Die ProxyDateien werden nur im Debug Modus erstellt!
            List <Type> controllers = new List <Type>();
            controllers.Add(typeof(HomeController));
            controllers.Add(typeof(AngularProxyController));

            AngularProxyBuilder builder = new AngularProxyBuilder(@"ScriptsAngular\srv");
            builder.StartBuildProcess(controllers);
#endif

            //Remove and JsonValueProviderFactory and add JsonDotNetValueProviderFactory
            //ValueProviderFactories.Factories.Remove(ValueProviderFactories.Factories.OfType<JsonValueProviderFactory>().FirstOrDefault());
            //ValueProviderFactories.Factories.Add(new JsonDotNetValueProviderFactory());
        }