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