37 references to AsyncOperationManager
System (15)
compmod\microsoft\win32\SystemEvents.cs (1)
1619
_syncContext =
AsyncOperationManager
.SynchronizationContext;
compmod\system\componentmodel\BackgroundWorker.cs (1)
191
asyncOperation =
AsyncOperationManager
.CreateOperation(null);
net\System\Net\mail\SmtpClient.cs (1)
630
asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
net\System\Net\NetworkInformation\ping.cs (2)
425
asyncOp =
AsyncOperationManager
.CreateOperation (userToken);
483
asyncOp =
AsyncOperationManager
.CreateOperation (userToken);
net\System\Net\webclient.cs (9)
1835
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
1916
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
1985
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
2039
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
2097
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
2209
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
2300
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
2401
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
2499
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
sys\system\Media\SoundPlayer.cs (1)
204
asyncOperation =
AsyncOperationManager
.CreateOperation(null);
System.Net (6)
net\PeerToPeer\Collaboration\ContactManager.cs (1)
1542
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(userToken);
net\PeerToPeer\Collaboration\MyContact.cs (1)
573
AsyncOp =
AsyncOperationManager
.CreateOperation(userToken);
net\PeerToPeer\Collaboration\Peer.cs (1)
1132
m_AsyncOp =
AsyncOperationManager
.CreateOperation(m_userState);
net\PeerToPeer\Collaboration\PeerContact.cs (1)
567
AsyncOp =
AsyncOperationManager
.CreateOperation(userToken);
net\PeerToPeer\Collaboration\PeerNearMe.cs (1)
461
m_refreshDataAsyncOp =
AsyncOperationManager
.CreateOperation(userToken);
net\PeerToPeer\PeerNameResolver.cs (1)
240
m_AsyncOp =
AsyncOperationManager
.CreateOperation(m_userState);
System.ServiceModel (1)
System\ServiceModel\ClientBase.cs (1)
998
AsyncOperation asyncOperation =
AsyncOperationManager
.CreateOperation(userState);
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\DiscoveryClient.cs (1)
908
context.AsyncOperation =
AsyncOperationManager
.CreateOperation(context.UserState);
System.Web (6)
HttpContext.cs (3)
2188
if (syncContext != null && syncContext ==
AsyncOperationManager
.SynchronizationContext) {
2191
AsyncOperationManager
.SynchronizationContext = _syncContext;
2209
AsyncOperationManager
.SynchronizationContext = syncContext;
ThreadContext.cs (3)
76
_originalSynchronizationContext =
AsyncOperationManager
.SynchronizationContext;
78
AsyncOperationManager
.SynchronizationContext = aspNetSynchronizationContext;
152
AsyncOperationManager
.SynchronizationContext = _originalSynchronizationContext;
System.Web.Services (2)
System\Web\Services\Protocols\HttpClientProtocol.cs (1)
282
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(new UserToken(callback, userState));
System\Web\Services\Protocols\SoapClientProtocol.cs (1)
438
AsyncOperation asyncOp =
AsyncOperationManager
.CreateOperation(new UserToken(callback, userState));
System.Windows.Forms (6)
winforms\Managed\System\WinForms\PictureBox.cs (1)
657
currentAsyncLoadOperation =
AsyncOperationManager
.CreateOperation(null);
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (5)
137
SynchronizationContext currentContext =
AsyncOperationManager
.SynchronizationContext;
147
AsyncOperationManager
.SynchronizationContext = new WindowsFormsSynchronizationContext();
165
WindowsFormsSynchronizationContext winFormsSyncContext =
AsyncOperationManager
.SynchronizationContext as WindowsFormsSynchronizationContext;
170
AsyncOperationManager
.SynchronizationContext = new SynchronizationContext();
173
AsyncOperationManager
.SynchronizationContext = previousSyncContext;