mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 19:58:57 +08:00
#18346: Fixing LifeTimeScope exceptions in background tasks
Work Item: 18346 --HG-- branch : 1.x
This commit is contained in:
parent
e404aaa8dc
commit
c12e9b12ff
@ -20,7 +20,7 @@ namespace Orchard.Environment {
|
||||
IHttpContextAccessor httpContextAccessor,
|
||||
ILifetimeScope lifetimeScope) {
|
||||
_httpContextAccessor = httpContextAccessor;
|
||||
_lifetimeScope = lifetimeScope.Resolve<ILifetimeScope>();
|
||||
_lifetimeScope = lifetimeScope;
|
||||
}
|
||||
|
||||
public WorkContext GetContext(HttpContextBase httpContext) {
|
||||
|
Loading…
Reference in New Issue
Block a user