13 references to SynchronizationContextUtil
System.Web (13)
HttpContext.cs (1)
303
SynchronizationContextUtil
.ValidateModeForWebSockets();
UI\Page.cs (4)
5723
if (
SynchronizationContextUtil
.CurrentMode == SynchronizationContextMode.Legacy) {
5992
if (
SynchronizationContextUtil
.CurrentMode == SynchronizationContextMode.Legacy) {
6118
if (
SynchronizationContextUtil
.CurrentMode == SynchronizationContextMode.Legacy) {
6150
if (
SynchronizationContextUtil
.CurrentMode == SynchronizationContextMode.Normal) {
UI\PageAsyncTask.cs (4)
25
: this(beginHandler, endHandler, timeoutHandler, state, executeInParallel, currentMode:
SynchronizationContextUtil
.CurrentMode) {
39
SynchronizationContextUtil
.ValidateMode(currentMode, requiredMode: SynchronizationContextMode.Legacy, specificErrorMessage: SR.SynchronizationContextUtil_PageAsyncTaskTimeoutHandlerParallelNotCompatible);
55
: this(handler, currentMode:
SynchronizationContextUtil
.CurrentMode) {
65
SynchronizationContextUtil
.ValidateMode(currentMode, requiredMode: SynchronizationContextMode.Normal, specificErrorMessage: SR.SynchronizationContextUtil_TaskReturningPageAsyncMethodsNotCompatible);
UI\TemplateControl.cs (1)
963
SynchronizationContextUtil
.ValidateModeForPageAsyncVoidMethods();
UI\WebControls\ModelDataSourceView.cs (1)
320
if (!(_owner.DataControl.Page.IsAsync &&
SynchronizationContextUtil
.CurrentMode != SynchronizationContextMode.Legacy)) {
Util\AspCompat.cs (2)
196
SynchronizationContextUtil
.ValidateModeForAspCompat();
337
SynchronizationContextUtil
.ValidateModeForAspCompat();