4 writes to _stateObj
System.Data (4)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
4725_stateObj = null; // the reader now owns this... 4914_stateObj = null; // Session was re-claimed by session pool upon connection close. 4945_stateObj = stateObj; 5002_stateObj = null;
72 references to _stateObj
System.Data (72)
fx\src\data\System\Data\SqlClient\SqlCommand.cs (72)
942Debug.Assert(null != _stateObj, "TdsParserStateObject should not be null"); 943Debug.Assert(null != _stateObj.Parser, "TdsParser class should not be null in Command.Execute!"); 944Debug.Assert(_stateObj.Parser == _activeConnection.Parser, "stateobject parser not same as connection parser"); 1063TdsParserStateObject stateObj = _stateObj; 1329_stateObj.ReadSni(completion); 1366if (_stateObj != null) { 1367_stateObj.Parser.State = TdsParserState.Broken; // We failed to respond to attention, we have to quit! 1368_stateObj.Parser.Connection.BreakConnection(); 1369_stateObj.Parser.ThrowExceptionAndWarning(_stateObj); 1409if (_stateObj != null) { 1410_stateObj._networkPacketTaskSource = null; 1433if (_stateObj == null) { 1443Debug.Assert(!_internalEndExecuteInitiated || _stateObj == null); 1456lock (_stateObj) { 1533Debug.Assert(_stateObj == null); 1548Debug.Assert(_stateObj._syncOverAsync, "Should not attempt pends in a synchronous call"); 1549bool result = _stateObj.Parser.TryRun(RunBehavior.UntilDone, this, null, null, _stateObj, out dataReady); 1576Debug.Assert(null == _stateObj, "non-null state object in EndExecuteNonQuery"); 1668Debug.Assert(async || null == _stateObj, "non-null state object in InternalExecuteNonQuery"); 1822_stateObj.ReadSni(completion); 1868Debug.Assert(!_internalEndExecuteInitiated || _stateObj == null); 1881lock (_stateObj) { 2074Debug.Assert(!_internalEndExecuteInitiated || _stateObj == null); 2087lock (_stateObj) { 2225lock (_stateObj) { 2319_stateObj.ReadSni(completion); 2381Debug.Assert(null == _stateObj, "non-null state object in InternalEndExecuteReader"); 3110Task executeTask = _stateObj.Parser.TdsExecuteSQLBatch(this.CommandText, timeout, this.Notification, _stateObj, sync: true); 3119Debug.Assert(_stateObj._syncOverAsync, "Should not attempt pends in a synchronous call"); 3120bool result = _stateObj.Parser.TryRun(RunBehavior.UntilDone, this, null, null, _stateObj, out dataReady); 3395Debug.Assert(null == _stateObj, "non-null state object in PrepareForTransparentEncryption."); 3466Debug.Assert(null == _stateObj, "non-null state object in PrepareForTransparentEncryption."); 3775Debug.Assert(_stateObj == null, "_stateObj should be null at this time, in PrepareDescribeParameterEncryptionRequest."); 4423writeTask = _stateObj.Parser.TdsExecuteRPC(this, _sqlRPCParameterEncryptionReqArray, timeout, inSchema, this.Notification, _stateObj, CommandType.StoredProcedure == CommandType, sync: !asyncWrite); 4434writeTask = _stateObj.Parser.TdsExecuteRPC(this, _SqlRPCBatchArray, timeout, inSchema, this.Notification, _stateObj, CommandType.StoredProcedure == CommandType, sync: !asyncWrite ); 4451writeTask = _stateObj.Parser.TdsExecuteSQLBatch(text, timeout, this.Notification, _stateObj, 4455writeTask = _stateObj.Parser.TdsExecuteSQLBatch(text, timeout, this.Notification, _stateObj, sync: !asyncWrite); 4500writeTask = _stateObj.Parser.TdsExecuteRPC(this, _rpcArrayOf1, timeout, inSchema, this.Notification, _stateObj, CommandType.StoredProcedure == CommandType, sync:!asyncWrite); 4520Task executeTask = _stateObj.Parser.TdsExecuteSQLBatch(optionSettings, timeout, this.Notification, _stateObj, sync: true); 4523Debug.Assert(_stateObj._syncOverAsync, "Should not attempt pends in a synchronous call"); 4524bool result = _stateObj.Parser.TryRun(RunBehavior.UntilDone, this, null, null, _stateObj, out dataReady); 4535writeTask=_stateObj.Parser.TdsExecuteRPC(this, _rpcArrayOf1, timeout, inSchema, this.Notification, _stateObj, CommandType.StoredProcedure == CommandType, sync:!asyncWrite); 4578Debug.Assert(async || null == _stateObj, "non-null state object in RunExecuteReader"); 4690Debug.Assert(_stateObj == null); 4698Debug.Assert(_stateObj._syncOverAsync, "Should not attempt pends in a synchronous call"); 4699bool result = _stateObj.Parser.TryRun(RunBehavior.UntilDone, this, ds, null, _stateObj, out dataReady); 4724ds.Bind(_stateObj); 4921Debug.Assert (null == _stateObj,"StateObject not null on GetStateObject"); 5001TdsParserStateObject stateObj = _stateObj; 5069_SqlRPCBatchArray[_currentlyExecutingBatch].errorsIndexEnd = _stateObj.ErrorCount; 5070_SqlRPCBatchArray[_currentlyExecutingBatch].errors = _stateObj._errors; 5078_SqlRPCBatchArray[_currentlyExecutingBatch].warningsIndexEnd = _stateObj.WarningCount; 5079_SqlRPCBatchArray[_currentlyExecutingBatch].warnings = _stateObj._warnings; 5491string paramList = BuildParamList(_stateObj.Parser, _parameters); 5645string paramList = BuildParamList(_stateObj.Parser, BatchRPCMode ? parameters : _parameters); 5967string paramList = BuildParamList(_stateObj.Parser, _parameters); 5987var stateObj = _stateObj; 5996var stateObj = _stateObj; 6005return _stateObj;