protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { ApplyMigrations(applicationContext, "Our.Umbraco.PublishQueue", new SemVersion(0, 0, 1)); PublishQueueContext.EnsureContext( applicationContext.DatabaseContext, applicationContext.Services.ContentService, applicationContext.ProfilingLogger.Logger ); ContentTreeController.MenuRendering += ContentTreeController_MenuRendering; }
public static void EnsureContext(DatabaseContext dbContext, IContentService contentService, ILogger logger) { _instance = new PublishQueueContext(dbContext, contentService, logger); }