Exemplo n.º 1
0
        public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            if (_started)
            {
                return;
            }

            lock (_lock)
            {
                if (!_started)
                {
                    _started = true;

                    //Adding Custom GridConverter
                    //GridContext.Current.Converters.Add(new RgGridConverter());

                    _examineIndexer          = new ExamineIndexer();                                                            //Register events for examine
                    _examineDefaultIndexer   = new ExamineDefaultIndexer();                                                     // adds path_search + hideFromSearch to examine
                    _examineLciIndexer       = new Skybrud.Umbraco.Module.Indexers.ExamineLciIndexer();                         //LowerCase Indexer
                    _examineDateRangeIndexer = new ExamineDateRangeIndexer(new[] { Constants.SkyConstants.Properties.ContentDate });
                    _defaultNewsValues       = new ContentDefaultValues();                                                      //Default newsdate defaultvalue
                    _defaultValues           = new ContentDefaultValues();

                    _assetsWatcher     = new AssetsWatcher();                                               //Watches pt. scripts-folder, to handle any js updates
                    ContentChangesGuid = Guid.NewGuid();                                                    //Sets guid to handle changes in Umbracontent, to update frontend NG-cache
                    JsChangesGuid      = Guid.NewGuid();                                                    //Sets guid to handle changes in scripts-folder
                }
            }
        }
Exemplo n.º 2
0
        public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            if (_started)
                return;

            lock (_lock)
            {
                if (!_started)
                {
                    _started = true;

                    _examineLciIndexer = new Skybrud.Umbraco.Module.Indexers.ExamineLciIndexer();
                    _examineIndexer = new ExamineIndexer(); //Register events for examine
                    _defaultNewsValues = new Skybrud.Umbraco.Module.EventHandlers.ContentDefaultValues();
                    _defaultValues = new ContentDefaultValues();
                }
            }
        }