2 writes to _asyncWriteCount
System.Data (2)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
2611Interlocked.Decrement(ref _asyncWriteCount); 2923Interlocked.Increment(ref _asyncWriteCount);
10 references to _asyncWriteCount
System.Data (10)
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (10)
2620if (_asyncWriteCount == 0 && completionSource != null) { 2676if (_asyncWriteCount == 0) { 2700if ((_asyncWriteCount == 0) && ((!task.IsCompleted) || (task.Exception == null))) { 2730Debug.Assert(async || _asyncWriteCount == 0); 2898if (sync && _asyncWriteCount > 0) { // for example, SendAttention while there are writes pending 2908Debug.Assert(_asyncWriteCount == 0, "All async write should be finished"); 2924Debug.Assert(_asyncWriteCount >= 0); 2940if ((_asyncWriteCount == 0) && ((!task.IsCompleted) || (task.Exception == null))) { 3140Debug.Assert(_pendingWritePackets.Count == 0 && _asyncWriteCount == 0, "Should not clear all write packets if there are packets pending"); 3457Debug.Assert(_asyncWriteCount == 0, "StateObj still has outstanding async writes");