3 writes to _asyncReadWithoutSnapshot
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (3)
4709
_stateObj.
_asyncReadWithoutSnapshot
= true;
4743
stateObj.
_asyncReadWithoutSnapshot
= false;
4785
_stateObj.
_asyncReadWithoutSnapshot
= true;
18 references to _asyncReadWithoutSnapshot
System.Data (18)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (5)
4679
Debug.Assert(!_stateObj.
_asyncReadWithoutSnapshot
, "Can't prepare async invocation with snapshot if doing async without snapshots");
4721
if ((ignoreCloseToken) || (!_cancelAsyncOnCloseToken.IsCancellationRequested) || (stateObj.
_asyncReadWithoutSnapshot
)) {
4726
Debug.Assert(_snapshot == null && !_stateObj.
_asyncReadWithoutSnapshot
, "Snapshot not null or async without snapshot still enabled after cleaning async state");
4753
Debug.Assert(((_snapshot != null) || (_stateObj.
_asyncReadWithoutSnapshot
)), "Can not prepare for an async continuation if no async if setup");
4781
Debug.Assert(_stateObj != null && !_stateObj.
_asyncReadWithoutSnapshot
, "Already in async without snapshot");
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (13)
1291
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1324
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1358
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1430
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1507
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1537
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1567
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1603
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1840
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1856
Debug.Assert(_syncOverAsync || !
_asyncReadWithoutSnapshot
, "This method is not safe to call when doing sync over async");
1926
Debug.Assert((_snapshot != null) ^
_asyncReadWithoutSnapshot
, "Must have either _snapshot set up or _asyncReadWithoutSnapshot enabled (but not both) to pend a read");
2115
Debug.Assert(_networkPacketTaskSource == null || ((
_asyncReadWithoutSnapshot
) && (_networkPacketTaskSource.Task.IsCompleted)), "Pending async call or failed to replay snapshot when calling ReadSni");
3454
Debug.Assert(!
_asyncReadWithoutSnapshot
, "StateObj has AsyncReadWithoutSnapshot still enabled");