protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            var config = UmbracoConfig.For.ModelsBuilder();

            if (config.Enable)
            {
                FileService.SavingTemplate += FileService_SavingTemplate;
            }

            if (config.ModelsMode.IsLiveNotPure())
            {
                LiveModelsProvider.Install();
            }

            if (config.FlagOutOfDateModels)
            {
                OutOfDateModelsStatus.Install();
            }
        }
        public void Initialize(UmbracoServices umbracoServices)
        {
            var config = UmbracoConfig.For.ModelsBuilder();

            if (config.Enable)
            {
                FileService.SavingTemplate += FileService_SavingTemplate;
            }

            // fixme LiveModelsProvider should not be static
            if (config.ModelsMode.IsLiveNotPure())
            {
                LiveModelsProvider.Install(umbracoServices);
            }

            // fixme OutOfDateModelsStatus should not be static
            if (config.FlagOutOfDateModels)
            {
                OutOfDateModelsStatus.Install();
            }
        }