From fb24becd0d46555697656076065cf058dc9f379c Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 30 Mar 2015 17:40:36 +1100 Subject: [PATCH] completes: U4-6468 Move all 'Strategies' in the Web project that performs Core data operations to the Core project --- .../Strategies/RelateOnCopyHandler.cs | 1 + ...acheAfterUnPublish.cs => LegacyClasses.cs} | 37 +++++++++++-------- .../Publishing/UpdateCacheAfterPublish.cs | 16 -------- src/Umbraco.Web/Umbraco.Web.csproj | 3 +- 4 files changed, 23 insertions(+), 34 deletions(-) rename src/Umbraco.Web/Strategies/{Publishing/UpdateCacheAfterUnPublish.cs => LegacyClasses.cs} (71%) delete mode 100644 src/Umbraco.Web/Strategies/Publishing/UpdateCacheAfterPublish.cs diff --git a/src/Umbraco.Core/Strategies/RelateOnCopyHandler.cs b/src/Umbraco.Core/Strategies/RelateOnCopyHandler.cs index e8c1956f2d..8b29bb0da4 100644 --- a/src/Umbraco.Core/Strategies/RelateOnCopyHandler.cs +++ b/src/Umbraco.Core/Strategies/RelateOnCopyHandler.cs @@ -5,6 +5,7 @@ using Umbraco.Core.Services; namespace Umbraco.Core.Strategies { + //TODO: This should just exist in the content service/repo! public sealed class RelateOnCopyHandler : ApplicationEventHandler { protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) diff --git a/src/Umbraco.Web/Strategies/Publishing/UpdateCacheAfterUnPublish.cs b/src/Umbraco.Web/Strategies/LegacyClasses.cs similarity index 71% rename from src/Umbraco.Web/Strategies/Publishing/UpdateCacheAfterUnPublish.cs rename to src/Umbraco.Web/Strategies/LegacyClasses.cs index e49f78f6c8..434ab8ccbf 100644 --- a/src/Umbraco.Web/Strategies/Publishing/UpdateCacheAfterUnPublish.cs +++ b/src/Umbraco.Web/Strategies/LegacyClasses.cs @@ -1,17 +1,22 @@ -using System; -using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Configuration; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Publishing; -using Umbraco.Web.Cache; - - -namespace Umbraco.Web.Strategies.Publishing -{ - [Obsolete("This is not used and will be removed from the codebase in future versions")] - public class UpdateCacheAfterUnPublish : ApplicationEventHandler - { - } +using System; +using System.Linq; +using Umbraco.Core; +using Umbraco.Core.Configuration; +using Umbraco.Core.Events; +using Umbraco.Core.Models; +using Umbraco.Core.Publishing; +using Umbraco.Web.Cache; + + +namespace Umbraco.Web.Strategies.Publishing +{ + [Obsolete("This is not used and will be removed from the codebase in future versions")] + public class UpdateCacheAfterPublish : ApplicationEventHandler + { + } + + [Obsolete("This is not used and will be removed from the codebase in future versions")] + public class UpdateCacheAfterUnPublish : ApplicationEventHandler + { + } } \ No newline at end of file diff --git a/src/Umbraco.Web/Strategies/Publishing/UpdateCacheAfterPublish.cs b/src/Umbraco.Web/Strategies/Publishing/UpdateCacheAfterPublish.cs deleted file mode 100644 index a5cab77bc8..0000000000 --- a/src/Umbraco.Web/Strategies/Publishing/UpdateCacheAfterPublish.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Umbraco.Core; -using Umbraco.Core.Events; -using Umbraco.Core.Models; -using Umbraco.Core.Publishing; -using Umbraco.Web.Cache; - -namespace Umbraco.Web.Strategies.Publishing -{ - [Obsolete("This is not used and will be removed from the codebase in future versions")] - public class UpdateCacheAfterPublish : ApplicationEventHandler - { - } -} \ No newline at end of file diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj index 24d5058e31..2d9077bdc8 100644 --- a/src/Umbraco.Web/Umbraco.Web.csproj +++ b/src/Umbraco.Web/Umbraco.Web.csproj @@ -897,8 +897,7 @@ - - +