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