#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,
ILifetimeScope lifetimeScope) {
_httpContextAccessor = httpContextAccessor;
_lifetimeScope = lifetimeScope.Resolve<ILifetimeScope>();
_lifetimeScope = lifetimeScope;
}
public WorkContext GetContext(HttpContextBase httpContext) {