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