113 references to TdsParserState
System.Data (113)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
2437
if (_parser.State ==
TdsParserState
.OpenNotLoggedIn || _parser.State ==
TdsParserState
.OpenLoggedIn) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (11)
216
if ((parser == null) || (parser.State ==
TdsParserState
.Closed) || (parser.State ==
TdsParserState
.Broken)) {
1367
_stateObj.Parser.State =
TdsParserState
.Broken; // We failed to respond to attention, we have to quit!
3781
if ((tdsParser == null) || (tdsParser.State ==
TdsParserState
.Broken) || (tdsParser.State ==
TdsParserState
.Closed)) {
4821
if ((parser == null) || (parser.State ==
TdsParserState
.Closed)) {
4824
else if (parser.State !=
TdsParserState
.OpenLoggedIn) {
4936
if ((parser == null) || (parser.State ==
TdsParserState
.Broken) || (parser.State ==
TdsParserState
.Closed)) {
5173
if ((parser == null) || (parser.State ==
TdsParserState
.Closed) || (parser.State ==
TdsParserState
.Broken)) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (12)
901
if (parser.State ==
TdsParserState
.OpenLoggedIn) {
1024
parser.State =
TdsParserState
.Broken; // We failed while draining data, so TDS pointer can be between tokens - cannot recover
1084
Debug.Assert(parser == null || parser.State !=
TdsParserState
.OpenNotLoggedIn, "Reader on a connection that is not logged in");
1085
if ((parser != null) && (parser.State ==
TdsParserState
.OpenLoggedIn)) {
1120
if (_parser.State ==
TdsParserState
.Broken || _parser.State ==
TdsParserState
.Closed) {
2807
if (_parser.State ==
TdsParserState
.Broken || _parser.State ==
TdsParserState
.Closed) {
2882
if (_parser.State ==
TdsParserState
.Broken || _parser.State ==
TdsParserState
.Closed) {
3685
if (parser.State ==
TdsParserState
.OpenLoggedIn) {
4591
_parser.State =
TdsParserState
.Broken; // We failed to respond to attention, we have to quit!
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (1)
482
if (parser == null || parser.State !=
TdsParserState
.OpenLoggedIn)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (3)
699
if ((parser == null) || (parser.State ==
TdsParserState
.Broken) || (parser.State ==
TdsParserState
.Closed)) {
1603
||
TdsParserState
.Closed != _parser.State
fx\src\data\System\Data\SqlClient\TdsParser.cs (42)
141
internal
TdsParserState
_state =
TdsParserState
.Closed; // status flag for connection
345
internal
TdsParserState
State {
407
if (_state !=
TdsParserState
.Closed) {
497
_state =
TdsParserState
.OpenNotLoggedIn;
675
else if ((_state ==
TdsParserState
.Closed) || (_state ==
TdsParserState
.Broken)) {
692
_state =
TdsParserState
.Broken;
1156
if (_state !=
TdsParserState
.Closed) {
1160
_state =
TdsParserState
.Closed;
1194
if (_state ==
TdsParserState
.OpenLoggedIn) {
1252
breakConnection &= (
TdsParserState
.Closed != _state);
1254
if ((_state ==
TdsParserState
.OpenNotLoggedIn) && (_connHandler.ConnectionOptions.TransparentNetworkIPResolution || _connHandler.ConnectionOptions.MultiSubnetFailover || _loginWithFailover) && (temp.Count == 1) && ((temp[0].Number == TdsEnums.TIMEOUT_EXPIRED) || (temp[0].Number == TdsEnums.SNI_WAIT_TIMEOUT))) {
1263
_state =
TdsParserState
.Broken;
1271
if (_state ==
TdsParserState
.OpenLoggedIn) {
1826
if (
TdsParserState
.Broken == State ||
TdsParserState
.Closed == State ) {
1841
if (
TdsParserState
.Broken == State ||
TdsParserState
.Closed == State)
1872
_state =
TdsParserState
.Broken;
2712
if ( _state ==
TdsParserState
.OpenNotLoggedIn) {
3107
Debug.Assert(_state ==
TdsParserState
.OpenNotLoggedIn, "ProcessLoginAck called with state not TdsParserState.OpenNotLoggedIn");
3108
_state =
TdsParserState
.OpenLoggedIn;
3323
if ( _state ==
TdsParserState
.OpenNotLoggedIn) {
6845
if (_state ==
TdsParserState
.Closed || _state ==
TdsParserState
.Broken){
6873
_state =
TdsParserState
.Broken;
7703
if (
TdsParserState
.Broken == State ||
TdsParserState
.Closed == State) {
7909
if (old_outputPacketNumber != 1 && _state ==
TdsParserState
.OpenLoggedIn) {
7933
if (
TdsParserState
.Broken == State ||
TdsParserState
.Closed == State) {
7968
if ((_state ==
TdsParserState
.Closed) || (_state ==
TdsParserState
.Broken)) {
8075
if ((
TdsParserState
.Broken == State) || (
TdsParserState
.Closed == State)) {
9133
if (!(State ==
TdsParserState
.OpenNotLoggedIn || State ==
TdsParserState
.OpenLoggedIn)) {
9287
if (!(State ==
TdsParserState
.OpenNotLoggedIn || State ==
TdsParserState
.OpenLoggedIn)) {
9500
if (!(State ==
TdsParserState
.OpenNotLoggedIn || State ==
TdsParserState
.OpenLoggedIn)) {
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (42)
576
while ((!hasLock) && (_parser.State !=
TdsParserState
.Closed) && (_parser.State !=
TdsParserState
.Broken)) {
591
while ((!hasParserLock) && (_parser.State !=
TdsParserState
.Closed) && (_parser.State !=
TdsParserState
.Broken)) {
772
TdsParserState
state = Parser.State;
773
if (state !=
TdsParserState
.Broken && state !=
TdsParserState
.Closed) {
1005
if (_parser.State ==
TdsParserState
.Broken || _parser.State ==
TdsParserState
.Closed) {
1937
if (_parser.State ==
TdsParserState
.Broken || _parser.State ==
TdsParserState
.Closed) {
2010
Parser.State =
TdsParserState
.Broken;
2044
_parser.State =
TdsParserState
.Broken;
2050
else if (_parser.State ==
TdsParserState
.OpenLoggedIn) {
2094
_parser.State =
TdsParserState
.Broken;
2123
if (_parser.State ==
TdsParserState
.Broken || _parser.State ==
TdsParserState
.Closed) {
2226
if ((_parser == null) || ((_parser.State ==
TdsParserState
.Broken) || (_parser.State ==
TdsParserState
.Closed))) {
2283
if ((_parser == null) || ((_parser.State ==
TdsParserState
.Broken) || (_parser.State ==
TdsParserState
.Closed))) {
2323
if (stateObj.Parser.State ==
TdsParserState
.OpenLoggedIn) {
2370
else if ((_parser.State ==
TdsParserState
.OpenNotLoggedIn) && (_parser.Connection.ConnectionOptions.MultiSubnetFailover || _parser.Connection.ConnectionOptions.TransparentNetworkIPResolution))
2382
_parser.State =
TdsParserState
.Broken; // We failed subsequent read, we have to quit!
2398
if ((_parser.State ==
TdsParserState
.Closed) || (_parser.State ==
TdsParserState
.Broken)) {
2530
else if ((_parser.State ==
TdsParserState
.Closed) || (_parser.State ==
TdsParserState
.Broken)) {
2545
Debug.Assert(_parser.State ==
TdsParserState
.Broken || _parser.State ==
TdsParserState
.Closed || _parser.Connection.IsConnectionDoomed, "Failed to capture exception while the connection was still healthy");
2550
_parser.State =
TdsParserState
.Broken;
2687
if ((_parser.State ==
TdsParserState
.Closed) || (_parser.State ==
TdsParserState
.Broken)) {
2811
if ((_parser.State ==
TdsParserState
.Closed) || (_parser.State ==
TdsParserState
.Broken)) {
3005
if (_parser.State ==
TdsParserState
.Closed || _parser.State ==
TdsParserState
.Broken) {
3034
if (_parser.State ==
TdsParserState
.Closed || _parser.State ==
TdsParserState
.Broken) {
3097
if (_parser.State ==
TdsParserState
.OpenNotLoggedIn &&
3451
if ((parser != null) && (parser.State !=
TdsParserState
.Closed) && (parser.State !=
TdsParserState
.Broken)) {