4 writes to _parser
System.Data (4)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (4)
681
TdsParser parser = Interlocked.Exchange(ref
_parser
, null); // guard against multiple concurrent dispose calls -- Delegated Transactions might cause this.
1541
_parser
= new TdsParser(ConnectionOptions.MARS, ConnectionOptions.Asynchronous);
1780
_parser
= new TdsParser(ConnectionOptions.MARS, ConnectionOptions.Asynchronous);
1829
_parser
= new TdsParser(ConnectionOptions.MARS, ConnectionOptions.Asynchronous);
61 references to _parser
System.Data (61)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (61)
547
return
_parser
.CurrentTransaction;
553
return
_parser
._fResetConnection ? null : CurrentTransaction;
560
return
_parser
.PendingTransaction;
596
return
_parser
.IsYukonOrNewer;
602
return
_parser
.IsKatmaiOrNewer;
614
return
_parser
;
671
Threading.Tasks.Task executeTask =
_parser
.TdsExecuteSQLBatch("use " + database, ConnectionOptions.ConnectTimeout, null,
_parser
._physicalStateObj, sync: true);
673
_parser
.Run(RunBehavior.UntilDone, null, null, null,
_parser
._physicalStateObj);
698
TdsParser parser =
_parser
;
801
isAlive =
_parser
._physicalStateObj.IsConnectionAlive(throwOnException);
853
Debug.Assert(null !=
_parser
|| IsConnectionDoomed, "Deactivating a disposed connection?");
854
if (
_parser
!= null) {
856
_parser
.Deactivate(IsConnectionDoomed);
873
Debug.Assert(!
_parser
._physicalStateObj._pendingData, "Upon ResetConnection SqlInternalConnectionTds has pending data.");
881
_parser
.PrepareResetConnection(IsTransactionRoot && !IsNonPoolableTransactionRoot);
888
Threading.Tasks.Task executeTask =
_parser
.TdsExecuteSQLBatch("sp_reset_connection", 30, null,
_parser
._physicalStateObj, sync: true);
890
_parser
.Run(RunBehavior.UntilDone, null, null, null,
_parser
._physicalStateObj);
954
if (!
_parser
.IsYukonOrNewer) {
1032
Threading.Tasks.Task executeTask =
_parser
.TdsExecuteSQLBatch(sqlBatch.ToString(), ConnectionOptions.ConnectTimeout, null,
_parser
._physicalStateObj, sync: true);
1034
_parser
.Run(RunBehavior.UntilDone, null, null, null,
_parser
._physicalStateObj);
1042
_parser
.CurrentTransaction = internalTransaction;
1081
TdsParserStateObject stateObj =
_parser
._physicalStateObj;
1082
TdsParser parser =
_parser
;
1151
if (
_parser
.MARSOn) {
1152
stateObj =
_parser
.GetSession(this);
1162
_parser
.TdsExecuteTransactionManagerRequest(null, requestType, transactionName, isoLevel,
1187
byte[] dtcAddress =
_parser
.GetDTCAddress(ConnectionOptions.ConnectTimeout,
_parser
.GetSession(this));
1193
_parser
.PropagateDistributedTransaction(cookie, ConnectionOptions.ConnectTimeout,
_parser
._physicalStateObj);
1201
_parser
.Run(RunBehavior.UntilDone, null, null, null,
_parser
._physicalStateObj);
1224
bool isEncrypted =
_parser
.EncryptionOptions == EncryptionOptions.ON;
1237
_parser
._physicalStateObj.SniContext = SniContext.Snix_EnableMars;
1238
_parser
.EnableMars();
1249
_parser
._physicalStateObj.SniContext = SniContext.Snix_AutoEnlist;
1253
_parser
._physicalStateObj.SniContext=SniContext.Snix_Login;
1355
_parser
.TdsLogin(login, requestedFeatures, _recoverySessionData, _fedAuthFeatureExtensionData);
1365
if (
_parser
!= null) {
1367
_parser
.Disconnect();
1538
if (
_parser
!= null)
1539
_parser
.Disconnect();
1602
if (null ==
_parser
1603
|| TdsParserState.Closed !=
_parser
.State
1777
if (
_parser
!= null)
1778
_parser
.Disconnect();
1826
if (
_parser
!= null)
1827
_parser
.Disconnect();
1962
_parser
._physicalStateObj.SniContext = SniContext.Snix_Connect;
1964
_parser
.Connect(serverInfo,
1980
_parser
._physicalStateObj.SniContext = SniContext.Snix_Login;
2305
_parser
.SendFedAuthToken(fedAuthToken);
2599
_parser
.IsColumnEncryptionSupported = true;
2600
_parser
.TceVersionSupported = _tceVersionSupported;
2603
_parser
.EnclaveType = Encoding.Unicode.GetString(data, 2, (data.Length - 2));