mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-18 17:47:54 +08:00
#18346: Fixing LifeTimeScope exceptions in background tasks
Work Item: 18346 --HG-- branch : 1.x
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user