Exemplo n.º 1
0
        protected void Application_Start()
        {
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AreaRegistration.RegisterAllAreas();
            RegisterRoutes(RouteTable.Routes);

            Global.StartApplication(this);
        }
Exemplo n.º 2
0
        protected void Application_Start()
        {
            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(new RazorViewEngine()
            {
                FileExtensions = new[] { "cshtml" }
            });                                                                                     // this should speed up rendering a bit

            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AreaRegistration.RegisterAllAreas();
            RegisterRoutes(RouteTable.Routes);

            Global.StartApplication(this);
        }
Exemplo n.º 3
0
        protected void Application_Start()
        {
            System.Net.ServicePointManager.DefaultConnectionLimit = 200;
            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(new RazorViewEngine()
            {
                FileExtensions = new[] { "cshtml" }
            });                                                                                     // this should speed up rendering a bit

            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AreaRegistration.RegisterAllAreas();
            RegisterRoutes(RouteTable.Routes);

            Global.StartApplication(this);
        }
Exemplo n.º 4
0
        protected void Application_Start()
        {
            ServicePointManager.DefaultConnectionLimit = 200;
            ServicePointManager.SecurityProtocol       = SecurityProtocolType.Tls12; // neded for paypal

            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(new RazorViewEngine()
            {
                FileExtensions = new[] { "cshtml" }
            });                                                                                     // this should speed up rendering a bit
            ViewEngines.Engines.Add(new Models.PartialViewEngine());

            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AreaRegistration.RegisterAllAreas();
            RegisterRoutes(RouteTable.Routes);

            Global.StartApplication(this);
        }