Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }