mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
smartthreadpool: httpcontext will be gone (we dont use it)
This commit is contained in:
6
ThirdParty/SmartThreadPool/WorkItem.cs
vendored
6
ThirdParty/SmartThreadPool/WorkItem.cs
vendored
@@ -208,9 +208,9 @@ namespace Amib.Threading.Internal
|
||||
_workItemsGroup = workItemsGroup;
|
||||
_workItemInfo = workItemInfo;
|
||||
|
||||
if (_workItemInfo.UseCallerCallContext || _workItemInfo.UseCallerHttpContext)
|
||||
if (_workItemInfo.UseCallerCallContext)
|
||||
{
|
||||
_callerContext = CallerThreadContext.Capture(_workItemInfo.UseCallerCallContext, _workItemInfo.UseCallerHttpContext);
|
||||
_callerContext = CallerThreadContext.Capture(_workItemInfo.UseCallerCallContext);
|
||||
}
|
||||
|
||||
_callback = callback;
|
||||
@@ -359,7 +359,7 @@ namespace Amib.Threading.Internal
|
||||
CallerThreadContext ctc = null;
|
||||
if (null != _callerContext)
|
||||
{
|
||||
ctc = CallerThreadContext.Capture(_callerContext.CapturedCallContext, _callerContext.CapturedHttpContext);
|
||||
ctc = CallerThreadContext.Capture(_callerContext.CapturedCallContext);
|
||||
CallerThreadContext.Apply(_callerContext);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user