1 instantiation of DbConnectionPoolAuthenticationContext
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
2480
_newDbConnectionPoolAuthenticationContext = new
DbConnectionPoolAuthenticationContext
(fedAuthToken.accessToken, expirationTime);
11 references to DbConnectionPoolAuthenticationContext
System.Data (11)
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (3)
432
private readonly ConcurrentDictionary<DbConnectionPoolAuthenticationContextKey,
DbConnectionPoolAuthenticationContext
> _pooledDbAuthenticationContexts;
495
_pooledDbAuthenticationContexts = new ConcurrentDictionary<DbConnectionPoolAuthenticationContextKey,
DbConnectionPoolAuthenticationContext
>(concurrencyLevel: 4 * Environment.ProcessorCount /* default value in ConcurrentDictionary*/,
597
internal ConcurrentDictionary<DbConnectionPoolAuthenticationContextKey,
DbConnectionPoolAuthenticationContext
> AuthenticationContexts
fx\src\data\System\Data\ProviderBase\DbConnectionPoolAuthenticationContext.cs (3)
70
internal static
DbConnectionPoolAuthenticationContext
ChooseAuthenticationContextToUpdate(
DbConnectionPoolAuthenticationContext
context1,
DbConnectionPoolAuthenticationContext
context2) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (5)
144
private
DbConnectionPoolAuthenticationContext
_newDbConnectionPoolAuthenticationContext;
2211
DbConnectionPoolAuthenticationContext
dbConnectionPoolAuthenticationContext = null;
2315
internal bool TryGetFedAuthTokenLocked(SqlFedAuthInfo fedAuthInfo,
DbConnectionPoolAuthenticationContext
dbConnectionPoolAuthenticationContext, out SqlFedAuthToken fedAuthToken) {
2564
DbConnectionPoolAuthenticationContext
newAuthenticationContextInCacheAfterAddOrUpdate = _dbConnectionPool.AuthenticationContexts.AddOrUpdate(_dbConnectionPoolAuthenticationContextKey, _newDbConnectionPoolAuthenticationContext,
2565
(key, oldValue) =>
DbConnectionPoolAuthenticationContext
.ChooseAuthenticationContextToUpdate(oldValue, _newDbConnectionPoolAuthenticationContext));