3 instantiations of OverlappedContext
System.ServiceModel (3)
System\ServiceModel\Channels\PipeConnection.cs (3)
98this.readOverlapped = new OverlappedContext(); 100this.writeOverlapped = new OverlappedContext(); 2216overlapped = new OverlappedContext();
29 references to OverlappedContext
System.ServiceModel (29)
System\ServiceModel\Channels\OverlappedContext.cs (26)
49if (OverlappedContext.completeCallback == null) 51OverlappedContext.completeCallback = Fx.ThunkCallback(new IOCompletionCallback(CompleteCallback)); 53if (OverlappedContext.eventCallback == null) 55OverlappedContext.eventCallback = Fx.ThunkCallback(new WaitOrTimerCallback(EventCallback)); 57if (OverlappedContext.cleanupCallback == null) 59OverlappedContext.cleanupCallback = Fx.ThunkCallback(new WaitOrTimerCallback(CleanupCallback)); 62this.bufferHolder = new object[] { OverlappedContext.dummyBuffer }; 64this.nativeOverlapped = this.overlapped.UnsafePack(OverlappedContext.completeCallback, this.bufferHolder); 85Fx.Assert(OverlappedContext.cleanupCallback != null, "cleanupCallback null in Finalize."); 91ThreadPool.UnsafeRegisterWaitForSingleObject(this.rootedHolder.EventHolder, OverlappedContext.cleanupCallback, this, Timeout.Infinite, true); 186Fx.Assert(object.ReferenceEquals(this.bufferHolder[0], OverlappedContext.dummyBuffer), "StartAsyncOperation: buffer holder corrupted."); 210this.registration = ThreadPool.UnsafeRegisterWaitForSingleObject(this.completionEvent, OverlappedContext.eventCallback, this, Timeout.Infinite, true); 224this.bufferHolder[0] = OverlappedContext.dummyBuffer; 259Fx.Assert(object.ReferenceEquals(holder, OverlappedContext.dummyBuffer), "StartSyncOperation: buffer holder corrupted."); 289ThreadPool.UnsafeRegisterWaitForSingleObject(this.completionEvent, OverlappedContext.cleanupCallback, this, Timeout.Infinite, true); 311holder = OverlappedContext.dummyBuffer; 312Fx.Assert(object.ReferenceEquals(this.bufferHolder[0], OverlappedContext.dummyBuffer), "Bad holder passed to CancelSyncOperation."); 376OverlappedContext pThis = ((RootedHolder)overlapped.AsyncResult).ThisHolder; 387pThis.bufferHolder[0] = OverlappedContext.dummyBuffer; 399OverlappedContext pThis = state as OverlappedContext; 423pThis.bufferHolder[0] = OverlappedContext.dummyBuffer; 435OverlappedContext pThis = state as OverlappedContext; 460OverlappedContext overlappedBuffer; 464public OverlappedContext ThisHolder
System\ServiceModel\Channels\PipeConnection.cs (3)
47OverlappedContext readOverlapped; 62OverlappedContext writeOverlapped; 2202OverlappedContext overlapped;