1 write to SyncContext
System.Web (1)
WebSocketPipeline.cs (1)
96_httpContext.SyncContext = syncContext;
53 references to SyncContext
System.Web (53)
HttpApplication.cs (13)
3138context.SyncContext.ProhibitVoidAsyncOperations(); 3204context.SyncContext.AllowVoidAsyncOperations(); 3212context.SyncContext.ProhibitVoidAsyncOperations(); 3226context.SyncContext.ProhibitVoidAsyncOperations(); 3438context.SyncContext.ProhibitVoidAsyncOperations(); 3556context.SyncContext.AllowVoidAsyncOperations(); 3564context.SyncContext.ProhibitVoidAsyncOperations(); 3578context.SyncContext.ProhibitVoidAsyncOperations(); 3609context.SyncContext.SetSyncCaller(); 3615context.SyncContext.ResetSyncCaller(); 3877AspNetSynchronizationContextBase syncContext = context.SyncContext; 4073AspNetSynchronizationContextBase syncContext = context.SyncContext; 4215context.SyncContext.Enable();
HttpContext.cs (2)
738return SyncContext.AllowAsyncDuringSyncStages; 741SyncContext.AllowAsyncDuringSyncStages = value;
httpserverutility.cs (8)
451bool originalSyncContextWasEnabled = _context.SyncContext.Enabled; 452_context.SyncContext.Disable(); 544_context.SyncContext.DisassociateFromCurrentThread(); 560_context.SyncContext.AssociateWithCurrentThread(); 580using (_context.SyncContext.AcquireThreadLock()) { 596using (_context.SyncContext.AcquireThreadLock()) { 601if (blockedThread && !_context.SyncContext.AllowAsyncDuringSyncStages) { 653_context.SyncContext.Enable();
ThreadContext.cs (1)
77AspNetSynchronizationContextBase aspNetSynchronizationContext = HttpContext.SyncContext;
UI\Control.cs (4)
1795using (page.Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 2283using (page.Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 2365using (page.Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 2374using (page.Context.SyncContext.AllowVoidAsyncOperationsBlock()) {
UI\LegacyPageAsyncTask.cs (2)
164using (app.Context.SyncContext.AcquireThreadLock()) { 203using (app.Context.SyncContext.AcquireThreadLock()) {
UI\LegacyPageAsyncTaskManager.cs (5)
164_app.Context.SyncContext.DisassociateFromCurrentThread(); 165_app.Context.SyncContext.AssociateWithCurrentThread(); 210using (_app.Context.SyncContext.AcquireThreadLock()) { 295_app.Context.SyncContext.DisassociateFromCurrentThread(); 303_app.Context.SyncContext.AssociateWithCurrentThread();
UI\Page.cs (16)
3149using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 3199using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 3243using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 3307using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 4253using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 5045using (con.SyncContext.AllowVoidAsyncOperationsBlock()) { 5074using (con.SyncContext.AllowVoidAsyncOperationsBlock()) { 5109using (con.SyncContext.AllowVoidAsyncOperationsBlock()) { 5118using (con.SyncContext.AllowVoidAsyncOperationsBlock()) { 5351using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 5575_context.SyncContext.Disable(); 5773_syncContext = page.Context.SyncContext; 6012context.SyncContext.ProhibitVoidAsyncOperations(); 6035await _asyncTaskManager.ExecuteTasksAsync(this, EventArgs.Empty, cancellationToken, _context.SyncContext, _context.ApplicationInstance); 6085if (_context.SyncContext.PendingOperationsCount == 0) { 6105_context.SyncContext.Disable();
UI\WebControls\ModelDataSourceView.cs (2)
722var syncContext = _owner.DataControl.Page.Context.SyncContext as AspNetSynchronizationContext; 874var syncContext = _owner.DataControl.Page.Context.SyncContext as AspNetSynchronizationContext;