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