From 2594fa423f7e8660de22fbf5c867cc86ef0f066f Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 18 Jul 2016 10:50:41 +0200 Subject: [PATCH] Cleanup after merge --- .../Redirects/RedirectTrackingEventHandler.cs | 25 ++----------------- src/Umbraco.Web/WebBootManager.cs | 1 - 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/src/Umbraco.Web/Redirects/RedirectTrackingEventHandler.cs b/src/Umbraco.Web/Redirects/RedirectTrackingEventHandler.cs index cd0d4d39b7..953419bb5b 100644 --- a/src/Umbraco.Web/Redirects/RedirectTrackingEventHandler.cs +++ b/src/Umbraco.Web/Redirects/RedirectTrackingEventHandler.cs @@ -26,29 +26,6 @@ namespace Umbraco.Web.Redirects private const string ContextKey2 = "Umbraco.Web.Redirects.RedirectTrackingEventHandler.2"; private const string ContextKey3 = "Umbraco.Web.Redirects.RedirectTrackingEventHandler.3"; - /// - protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) - { - // if any of these dlls are loaded we don't want to run our finder - var dlls = new[] - { - "InfoCaster.Umbraco.UrlTracker", - "SEOChecker", - "Simple301", - "Terabyte.Umbraco.Modules.PermanentRedirect", - "CMUmbracoTools", - "PWUrlRedirect" - }; - - // assuming all assemblies have been loaded already - // check if any of them matches one of the above dlls - var found = AppDomain.CurrentDomain.GetAssemblies() - .Select(x => x.FullName.Split(',')[0]) - .Any(x => dlls.Contains(x)); - if (found) - ContentFinderResolver.Current.RemoveType(); - } - /// protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { @@ -63,6 +40,8 @@ namespace Umbraco.Web.Redirects // // this is all verrrry weird but it seems to work + // fixme - refactor this in NuCache branch with new ContentCacheRefresher + ContentService.Publishing += ContentService_Publishing; ContentService.Published += ContentService_Published; ContentService.Moving += ContentService_Moving; diff --git a/src/Umbraco.Web/WebBootManager.cs b/src/Umbraco.Web/WebBootManager.cs index e321ba4548..d70dd0e4b5 100644 --- a/src/Umbraco.Web/WebBootManager.cs +++ b/src/Umbraco.Web/WebBootManager.cs @@ -490,7 +490,6 @@ namespace Umbraco.Web typeof(ContentFinderByNiceUrlAndTemplate), typeof(ContentFinderByProfile), typeof(ContentFinderByUrlAlias), - typeof(ContentFinderByRedirectUrl) );