smartthreadpool: httpcontext will be gone (we dont use it)

This commit is contained in:
UbitUmarov
2020-12-30 11:53:46 +00:00
parent 4ab792cd13
commit b667bff8bb
6 changed files with 5 additions and 79 deletions

View File

@@ -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);
}