11 writes to _asyncWrite
System.Data (11)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (5)
1802
_parser.
_asyncWrite
= false;
1845
_parser.
_asyncWrite
= false;
2116
_parser.
_asyncWrite
= false;
2396
_parser.
_asyncWrite
= false;
2562
_parser.
_asyncWrite
= _isAsyncBulkCopy; //very important!
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
7728
_asyncWrite
= false;
7885
_asyncWrite
= hadAsyncWrites;
7964
_asyncWrite
= !sync;
8082
_asyncWrite
= !sync;
8651
_asyncWrite
= false;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
3039
_parser.
_asyncWrite
= false; // stop async write
17 references to _asyncWrite
System.Data (17)
fx\src\data\System\Data\SqlClient\TdsParser.cs (14)
7725
bool hadAsyncWrites =
_asyncWrite
;
9617
if ((internalWriteTask == null) && (
_asyncWrite
)) {
9620
Debug.Assert(
_asyncWrite
|| stateObj.WaitForAccumulatedWrites() == null, "Should not have accumulated writes when writing sync");
10173
Debug.Assert(!_parser.
_asyncWrite
);
10185
Debug.Assert(_parser.
_asyncWrite
);
10370
if (
_asyncWrite
) {
10389
if (
_asyncWrite
) {
10397
if (
_asyncWrite
) {
10413
if (
_asyncWrite
) {
10425
if (
_asyncWrite
) {
10436
if (
_asyncWrite
) {
10446
if (
_asyncWrite
) {
10467
if (
_asyncWrite
) {
10478
if (
_asyncWrite
) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (3)
2729
bool async = _parser.
_asyncWrite
; // NOTE: We are capturing this now for the assert after the Task is returned, since WritePacket will turn off async if there is an exception
2827
bool willCancel = (_cancelled) && (_parser.
_asyncWrite
);
2897
bool sync = !_parser.
_asyncWrite
;