#5306: Minor refactoring of background http context factory.

This commit is contained in:
Sipke Schoorstra
2015-05-27 16:36:51 +02:00
parent ef2abe14cb
commit 53e58f60fe
3 changed files with 11 additions and 7 deletions

View File

@@ -30,9 +30,4 @@ namespace Orchard {
HttpContext.Current = CreateHttpContext();
}
}
public interface IBackgroundHttpContextFactory : IDependency {
HttpContext CreateHttpContext();
void InitializeHttpContext();
}
}
}

View File

@@ -0,0 +1,8 @@
using System.Web;
namespace Orchard {
public interface IBackgroundHttpContextFactory : IDependency {
HttpContext CreateHttpContext();
void InitializeHttpContext();
}
}

View File

@@ -148,6 +148,7 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="BackgroundHttpContextFactory.cs" />
<Compile Include="Caching\DefaultCacheContextAccessor.cs" />
<Compile Include="Caching\DefaultParallelCacheContext.cs" />
<Compile Include="Caching\ICacheContextAccessor.cs" />
@@ -645,7 +646,7 @@
<Compile Include="WebApi\Filters\OrchardApiActionFilterDispatcher.cs" />
<Compile Include="WebApi\Routes\IHttpRouteProvider.cs" />
<Compile Include="WebApi\Routes\StandardExtensionHttpRouteProvider.cs" />
<Compile Include="BackgroundHttpContext.cs" />
<Compile Include="IBackgroundHttpContextFactory.cs" />
<Compile Include="WorkContextExtensions.cs" />
<Compile Include="Mvc\ViewEngines\Razor\RazorCompilationEventsShim.cs" />
<Compile Include="Mvc\ViewEngines\Razor\RazorViewEngineProvider.cs" />