Beispiel #1
0
        void Application_Start(object sender, EventArgs e)
        {
            if (SetupConfig.ApplicationStart())
            {
                return;
            }

            this.ConfigurePortal();

            //Uncomment if deploying to Azure and using Cloud Drive
            //Note: add the following using statements
            //using Microsoft.WindowsAzure.ServiceRuntime;
            //using Microsoft.WindowsAzure.StorageClient;
            //if (RoleEnvironment.IsAvailable)
            //{
            //	var driveCache = RoleEnvironment.GetLocalResource("CloudDriveCache");
            //	CloudDrive.InitializeCache(driveCache.RootPath, driveCache.MaximumSizeInMegabytes);
            //}

            var areaRegistrationState = new PortalAreaRegistrationState();

            Application[typeof(IPortalAreaRegistrationState).FullName] = areaRegistrationState;

            AreaRegistration.RegisterAllAreas(areaRegistrationState);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
        void Application_Start(object sender, EventArgs e)
        {
            AntiForgeryConfig.CookieName        = "__RequestVerificationToken";      // static name as its dependent on the ajax handler.
            MvcHandler.DisableMvcResponseHeader = true;
            _setupRunning = SetupConfig.ApplicationStart();

            if (_setupRunning)
            {
                return;
            }

            var areaRegistrationState = new PortalAreaRegistrationState();

            Application[typeof(IPortalAreaRegistrationState).FullName] = areaRegistrationState;

            AreaRegistration.RegisterAllAreas(areaRegistrationState);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
Beispiel #3
0
        void Application_Start(object sender, EventArgs e)
        {
            // Mainly created to disable the use of Ssl v3 which is no longer supported by the Organization Service
            // Now the Security Protocols to support can be set on the appSettings configuration section.
            ServicePointManager.SecurityProtocol = GetSecurityProtocolFromConfigurationOrDefault();

            AntiForgeryConfig.CookieName        = "__RequestVerificationToken";      // static name as its dependent on the ajax handler.
            MvcHandler.DisableMvcResponseHeader = true;
            _setupRunning = SetupConfig.ApplicationStart();

            if (_setupRunning)
            {
                return;
            }

            var areaRegistrationState = new PortalAreaRegistrationState();

            Application[typeof(IPortalAreaRegistrationState).FullName] = areaRegistrationState;

            AreaRegistration.RegisterAllAreas(areaRegistrationState);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }