#18346: Fixing LifeTimeScope exceptions in background tasks

Work Item: 18346

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-12 10:38:14 -08:00
parent e404aaa8dc
commit c12e9b12ff

View File

@@ -20,7 +20,7 @@ namespace Orchard.Environment {
IHttpContextAccessor httpContextAccessor, IHttpContextAccessor httpContextAccessor,
ILifetimeScope lifetimeScope) { ILifetimeScope lifetimeScope) {
_httpContextAccessor = httpContextAccessor; _httpContextAccessor = httpContextAccessor;
_lifetimeScope = lifetimeScope.Resolve<ILifetimeScope>(); _lifetimeScope = lifetimeScope;
} }
public WorkContext GetContext(HttpContextBase httpContext) { public WorkContext GetContext(HttpContextBase httpContext) {