22 references to CaptureOptions
mscorlib (22)
system\io\stream.cs (2)
659
ExecutionContext.
CaptureOptions
.OptimizeDefaultCase | ExecutionContext.
CaptureOptions
.IgnoreSyncCtx);
system\threading\CancellationToken.cs (1)
349
ref stackMark, ExecutionContext.
CaptureOptions
.OptimizeDefaultCase); // ideally we'd also use IgnoreSyncCtx, but that could break compat
system\threading\executioncontext.cs (6)
1202
return ExecutionContext.Capture(ref stackMark,
CaptureOptions
.None);
1216
return ExecutionContext.Capture(ref stackMark,
CaptureOptions
.IgnoreSyncCtx |
CaptureOptions
.OptimizeDefaultCase);
1234
static internal ExecutionContext Capture(ref StackCrawlMark stackMark,
CaptureOptions
options)
1264
if (0 == (options &
CaptureOptions
.IgnoreSyncCtx))
1286
if (0 != (options &
CaptureOptions
.OptimizeDefaultCase) &&
system\threading\overlapped.cs (2)
86
ExecutionContext.
CaptureOptions
.IgnoreSyncCtx | ExecutionContext.
CaptureOptions
.OptimizeDefaultCase);
system\threading\Tasks\Task.cs (2)
785
ExecutionContext.
CaptureOptions
.IgnoreSyncCtx | ExecutionContext.
CaptureOptions
.OptimizeDefaultCase);
system\threading\Tasks\TaskContinuation.cs (2)
565
ExecutionContext.
CaptureOptions
.IgnoreSyncCtx | ExecutionContext.
CaptureOptions
.OptimizeDefaultCase);
system\threading\thread.cs (1)
349
ExecutionContext.
CaptureOptions
.IgnoreSyncCtx);
system\threading\threadpool.cs (4)
1220
ExecutionContext.
CaptureOptions
.IgnoreSyncCtx | ExecutionContext.
CaptureOptions
.OptimizeDefaultCase);
1301
ExecutionContext.
CaptureOptions
.IgnoreSyncCtx | ExecutionContext.
CaptureOptions
.OptimizeDefaultCase);
system\threading\timer.cs (2)
549
ExecutionContext.
CaptureOptions
.IgnoreSyncCtx | ExecutionContext.
CaptureOptions
.OptimizeDefaultCase);