Skip to content

Commit

Permalink
Removed unnecessary comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
arellegue committed Jan 24, 2024
1 parent 96462af commit 25d2626
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2257,9 +2257,6 @@ internal void OnFedAuthInfo(SqlFedAuthInfo fedAuthInfo)

if (_newDbConnectionPoolAuthenticationContext != null)
{
// Try adding this new _newDbConnectionPoolAuthenticationContext to the _dbConnectionPool's AuthenticationContextKeys if it is not in there yet.
// The DbConnectionPoolAuthenticationContextKeys collection is used to refresh a cached token just before it expires within 10 minutes.
//_dbConnectionPool.AuthenticationContexts.TryAdd(new DbConnectionPoolAuthenticationContextKey(fedAuthInfo.stsurl, fedAuthInfo.spn), _newDbConnectionPoolAuthenticationContext);
_dbConnectionPool.AuthenticationContexts.TryAdd(_dbConnectionPoolAuthenticationContextKey, _newDbConnectionPoolAuthenticationContext);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2683,9 +2683,6 @@ internal void OnFedAuthInfo(SqlFedAuthInfo fedAuthInfo)

if (_newDbConnectionPoolAuthenticationContext != null)
{
// Try adding this new _newDbConnectionPoolAuthenticationContext to the _dbConnectionPool's AuthenticationContextKeys if it is not in there yet.
// The DbConnectionPoolAuthenticationContextKeys collection is used to refresh a cached token just before it expires within 10 minutes.
// _dbConnectionPool.AuthenticationContexts.TryAdd(new DbConnectionPoolAuthenticationContextKey(fedAuthInfo.stsurl, fedAuthInfo.spn), _newDbConnectionPoolAuthenticationContext);
_dbConnectionPool.AuthenticationContexts.TryAdd(_dbConnectionPoolAuthenticationContextKey, _newDbConnectionPoolAuthenticationContext);
}
}
Expand Down

0 comments on commit 25d2626

Please sign in to comment.