|
@@ -42,6 +42,8 @@ public class ApptaskDomainService : IApptaskDomainService, IScopeDependency
|
|
|
_sessionContextManager = sessionContextManager;
|
|
|
_mapper = mapper;
|
|
|
_logger = logger;
|
|
|
+
|
|
|
+ _httpContextAccessor.HttpContext ??= new DefaultHttpContext();
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -194,7 +196,6 @@ public class ApptaskDomainService : IApptaskDomainService, IScopeDependency
|
|
|
var cc = _sessionContext?.GetHashCode();
|
|
|
|
|
|
var dc = _sessionContext.UserId;
|
|
|
- _httpContextAccessor.HttpContext ??= new DefaultHttpContext();
|
|
|
_sessionContextProvider.ChangeSession(request.SessionContext);
|
|
|
//await _sessionContextManager.ChangeSessionContextByUserIdAsync(request.SessionContext.UserId, cancellation);
|
|
|
var dc1 = _sessionContext.UserId;
|