From 53e58f60fe2f588e76fcad3e26442eded8cc60f3 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 27 May 2015 16:36:51 +0200 Subject: [PATCH] #5306: Minor refactoring of background http context factory. --- ...oundHttpContext.cs => BackgroundHttpContextFactory.cs} | 7 +------ src/Orchard/IBackgroundHttpContextFactory.cs | 8 ++++++++ src/Orchard/Orchard.Framework.csproj | 3 ++- 3 files changed, 11 insertions(+), 7 deletions(-) rename src/Orchard/{BackgroundHttpContext.cs => BackgroundHttpContextFactory.cs} (89%) create mode 100644 src/Orchard/IBackgroundHttpContextFactory.cs diff --git a/src/Orchard/BackgroundHttpContext.cs b/src/Orchard/BackgroundHttpContextFactory.cs similarity index 89% rename from src/Orchard/BackgroundHttpContext.cs rename to src/Orchard/BackgroundHttpContextFactory.cs index 1b4f68f3b..9935e7dfc 100644 --- a/src/Orchard/BackgroundHttpContext.cs +++ b/src/Orchard/BackgroundHttpContextFactory.cs @@ -30,9 +30,4 @@ namespace Orchard { HttpContext.Current = CreateHttpContext(); } } - - public interface IBackgroundHttpContextFactory : IDependency { - HttpContext CreateHttpContext(); - void InitializeHttpContext(); - } -} +} \ No newline at end of file diff --git a/src/Orchard/IBackgroundHttpContextFactory.cs b/src/Orchard/IBackgroundHttpContextFactory.cs new file mode 100644 index 000000000..1437518f8 --- /dev/null +++ b/src/Orchard/IBackgroundHttpContextFactory.cs @@ -0,0 +1,8 @@ +using System.Web; + +namespace Orchard { + public interface IBackgroundHttpContextFactory : IDependency { + HttpContext CreateHttpContext(); + void InitializeHttpContext(); + } +} diff --git a/src/Orchard/Orchard.Framework.csproj b/src/Orchard/Orchard.Framework.csproj index 65099a4cc..c4cd91d8f 100644 --- a/src/Orchard/Orchard.Framework.csproj +++ b/src/Orchard/Orchard.Framework.csproj @@ -148,6 +148,7 @@ + @@ -645,7 +646,7 @@ - +