We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18bce3c commit c636056Copy full SHA for c636056
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/ProviderBase/DbConnectionPoolIdentity.cs
@@ -45,8 +45,8 @@ override public int GetHashCode()
45
46
internal static DbConnectionPoolIdentity GetCurrentManaged()
47
{
48
- string sidString = (!string.IsNullOrWhiteSpace(System.Environment.UserDomainName) ? System.Environment.UserDomainName + "\\" : "")
49
- + System.Environment.UserName;
+ string domainString = System.Environment.UserDomainName;
+ string sidString = (!string.IsNullOrWhiteSpace(domainString) ? domainString + "\\" : "") + System.Environment.UserName;
50
bool isNetwork = false;
51
bool isRestricted = false;
52
return new DbConnectionPoolIdentity(sidString, isRestricted, isNetwork);
0 commit comments