8 writes to _executionContext
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (7)
106
currentThread.
_executionContext
= executionContext.ShallowClone(isFlowSuppressed: true);
122
currentThread.
_executionContext
= executionContext.ShallowClone(isFlowSuppressed: false);
301
Thread.CurrentThread.
_executionContext
= executionContext;
318
currentThread.
_executionContext
= contextToRestore;
335
currentThread.
_executionContext
= null;
343
currentThread.
_executionContext
= null;
528
Thread.CurrentThread.
_executionContext
=
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
1065
currentThread.
_executionContext
= null;
15 references to _executionContext
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (2)
33
ExecutionContext? previousExecutionCtx = currentThread.
_executionContext
;
49
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (13)
54
ExecutionContext? executionContext = Thread.CurrentThread.
_executionContext
;
79
return Thread.CurrentThread.
_executionContext
;
101
ExecutionContext? executionContext = currentThread.
_executionContext
?? Default;
116
ExecutionContext? executionContext = currentThread.
_executionContext
;
127
ExecutionContext? executionContext = Thread.CurrentThread.
_executionContext
;
155
ExecutionContext? previousExecutionCtx0 = currentThread.
_executionContext
;
196
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
229
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
277
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
331
ExecutionContext? currentExecutionCtx = currentThread.
_executionContext
;
351
Debug.Assert(Thread.CurrentThread.
_executionContext
== null, "ThreadPool thread not on Default ExecutionContext.");
450
ExecutionContext? current = Thread.CurrentThread.
_executionContext
;
464
ExecutionContext? current = Thread.CurrentThread.
_executionContext
;