protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { // Init config var appPath = umbracoApplication.Server.MapPath("~/"); var configFilePath = Path.Combine(appPath, @"config\unVersion.config"); var config = new UnVersionConfig(configFilePath); // Init context UnVersionContext.Instance.UnVersionService = new UnVersionService(config, true); // Hookup event listener ContentService.Published += ContentServicePublished; }