26 references to TdsParserStaticMethods
System.Data (26)
fx\src\data\System\Data\Sql\SqlDataSourceEnumerator.cs (2)
55timeoutTime = TdsParserStaticMethods.GetTimeoutSeconds(timeoutSeconds); 62while (more && !TdsParserStaticMethods.TimeoutHasExpired(timeoutTime)) {
fx\src\data\System\Data\SqlClient\SqlCommand.cs (8)
2272Task<object> retryTask = (Task<object>)retryFunc(behavior, null, stateObject, TdsParserStaticMethods.GetRemainingTimeout(timeout, firstAttemptStart), true/*inRetry*/, asyncWrite); 3080Task subTask = RunExecuteNonQueryTds(methodName, async, TdsParserStaticMethods.GetRemainingTimeout(timeout, reconnectionStart), asyncWrite); 3092timeout = TdsParserStaticMethods.GetRemainingTimeout(timeout, reconnectionStart); 4184return RunExecuteReader(cmdBehavior, runBehavior, returnStream, method, null, TdsParserStaticMethods.GetRemainingTimeout(timeout, firstAttemptStart), out task, out usedCache, async, inRetry: true); 4219return RunExecuteReader(cmdBehavior, runBehavior, returnStream, method, null, TdsParserStaticMethods.GetRemainingTimeout(timeout, firstAttemptStart), out task, out usedCache, async, inRetry: true); 4287RunExecuteReaderTds(cmdBehavior, runBehavior, returnStream, async, TdsParserStaticMethods.GetRemainingTimeout(timeout, parameterEncryptionStart), out subTask, asyncWrite, inRetry, ds); 4367RunExecuteReaderTds(cmdBehavior, runBehavior, returnStream, async, TdsParserStaticMethods.GetRemainingTimeout(timeout, reconnectionStart), out subTask, asyncWrite, inRetry, ds); 4380timeout = TdsParserStaticMethods.GetRemainingTimeout(timeout, reconnectionStart);
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (1)
401TdsParserStaticMethods.AliasRegistryLookup(ref host, ref protocol);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (2)
1932TdsParserStaticMethods.AliasRegistryLookup(ref host, ref protocol); 1937TdsParserStaticMethods.AliasRegistryLookup(ref host, ref protocol);
fx\src\data\System\Data\SqlClient\TdsParser.cs (9)
808Int32 threadID = TdsParserStaticMethods.GetCurrentThreadIdForTdsLoginOnly(); 6902initialLength += 1 + 2 * TdsParserStaticMethods.NullAwareStringLength(reconnectData._initialDatabase); 6903initialLength += 1 + 2 * TdsParserStaticMethods.NullAwareStringLength(reconnectData._initialLanguage); 6911currentLength += 1 + 2 * (reconnectData._initialDatabase == reconnectData._database ? 0 : TdsParserStaticMethods.NullAwareStringLength(reconnectData._database)); 6912currentLength += 1 + 2 * (reconnectData._initialLanguage == reconnectData._language ? 0 : TdsParserStaticMethods.NullAwareStringLength(reconnectData._language)); 7151encryptedPassword = TdsParserStaticMethods.EncryptPassword(rec.password); 7159encryptedChangePassword = TdsParserStaticMethods.EncryptPassword(rec.newPassword); 7253WriteInt(TdsParserStaticMethods.GetCurrentProcessIdForTdsLoginOnly(), _physicalStateObj); //MDAC 84718 7387s_nicAddress = TdsParserStaticMethods.GetNetworkPhysicalAddressForTdsLoginOnly();
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (4)
414return TdsParserStaticMethods.TimeoutHasExpired(_timeoutTime); 421_timeoutTime = TdsParserStaticMethods.GetTimeout(_timeoutMilliseconds); 436_timeoutTime = TdsParserStaticMethods.GetTimeout(_timeoutMilliseconds); 440remaining = TdsParserStaticMethods.GetTimeoutMilliseconds(_timeoutTime);