Example #1
0
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            AreaRegistration.RegisterAllAreas();
            UnityConfig.RegisterComponents();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            _prompterStatus = DependencyResolver.Current.GetService<IPrompterStatus>();
            _prompterStatus.OnPrompterStatusChange();

            RegisterGlobalHttpFilters(GlobalConfiguration.Configuration.Filters);
            RegisterGlobalFilters(GlobalFilters.Filters);
        }
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            AreaRegistration.RegisterAllAreas();
            UnityConfig.RegisterComponents();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            _prompterStatus = DependencyResolver.Current.GetService <IPrompterStatus>();
            _prompterStatus.OnPrompterStatusChange();

            RegisterGlobalHttpFilters(GlobalConfiguration.Configuration.Filters);
            RegisterGlobalFilters(GlobalFilters.Filters);
        }