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 } } }
public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { // Register bundles RegisterBundles(BundleTable.Bundles); // Instance ExamineIndexer _examineIndexer = new ExamineIndexer(); }