protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     AutomapperConfig.Configure();
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     LogConfig.ConfigureLogging();
 }
Exemple #2
0
        protected void Application_Start()
        {
            // specify to use TLS 1.2 as default connection
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            AutomapperConfig.Configure();
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            LogConfig.ConfigureLogging();
        }