10 references to OptimizeDefaultCase
mscorlib (10)
system\io\stream.cs (1)
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 (2)
1216
return ExecutionContext.Capture(ref stackMark, CaptureOptions.IgnoreSyncCtx | CaptureOptions.
OptimizeDefaultCase
);
1286
if (0 != (options & CaptureOptions.
OptimizeDefaultCase
) &&
system\threading\overlapped.cs (1)
86
ExecutionContext.CaptureOptions.IgnoreSyncCtx | ExecutionContext.CaptureOptions.
OptimizeDefaultCase
);
system\threading\Tasks\Task.cs (1)
785
ExecutionContext.CaptureOptions.IgnoreSyncCtx | ExecutionContext.CaptureOptions.
OptimizeDefaultCase
);
system\threading\Tasks\TaskContinuation.cs (1)
565
ExecutionContext.CaptureOptions.IgnoreSyncCtx | ExecutionContext.CaptureOptions.
OptimizeDefaultCase
);
system\threading\threadpool.cs (2)
1220
ExecutionContext.CaptureOptions.IgnoreSyncCtx | ExecutionContext.CaptureOptions.
OptimizeDefaultCase
);
1301
ExecutionContext.CaptureOptions.IgnoreSyncCtx | ExecutionContext.CaptureOptions.
OptimizeDefaultCase
);
system\threading\timer.cs (1)
549
ExecutionContext.CaptureOptions.IgnoreSyncCtx | ExecutionContext.CaptureOptions.
OptimizeDefaultCase
);