mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#5306: Minor refactoring of background http context factory.
This commit is contained in:
@@ -30,9 +30,4 @@ namespace Orchard {
|
||||
HttpContext.Current = CreateHttpContext();
|
||||
}
|
||||
}
|
||||
|
||||
public interface IBackgroundHttpContextFactory : IDependency {
|
||||
HttpContext CreateHttpContext();
|
||||
void InitializeHttpContext();
|
||||
}
|
||||
}
|
||||
}
|
8
src/Orchard/IBackgroundHttpContextFactory.cs
Normal file
8
src/Orchard/IBackgroundHttpContextFactory.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using System.Web;
|
||||
|
||||
namespace Orchard {
|
||||
public interface IBackgroundHttpContextFactory : IDependency {
|
||||
HttpContext CreateHttpContext();
|
||||
void InitializeHttpContext();
|
||||
}
|
||||
}
|
@@ -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" />
|
||||
|
Reference in New Issue
Block a user