protected void Application_Start()
        {
            MaterialCMSApp.RegisterAllApps();
            AreaRegistration.RegisterAllAreas(MaterialCMSKernel.Kernel);
            MaterialCMSRouteRegistration.Register(RouteTable.Routes);

            RegisterServices(MaterialCMSKernel.Kernel);
            MaterialCMSApp.RegisterAllServices(MaterialCMSKernel.Kernel);

            LegacySettingMigrator.MigrateSettings(MaterialCMSKernel.Kernel);
            LegacyTemplateMigrator.MigrateTemplates(MaterialCMSKernel.Kernel);

            SetModelBinders();

            SetViewEngines();

            BundleRegistration.Register(MaterialCMSKernel.Kernel);

            ControllerBuilder.Current.SetControllerFactory(new MaterialCMSControllerFactory());

            GlobalFilters.Filters.Add(new HoneypotFilterAttribute());

            ModelMetadataProviders.Current = new MaterialCMSMetadataProvider(MaterialCMSKernel.Kernel);

            ImagePluginInstaller.Install();

            MiniProfiler.Settings.Results_Authorize      = MiniProfilerAuth.IsUserAllowedToSeeMiniProfilerUI;
            MiniProfiler.Settings.Results_List_Authorize = MiniProfilerAuth.IsUserAllowedToSeeMiniProfilerUI;


            OnApplicationStart();
        }
Example #2
0
 private void AppSpecificConfiguration(NHibernate.Cfg.Configuration configuration)
 {
     MaterialCMSApp.AppendAllAppConfiguration(configuration);
 }