14 references to s_cachedCreds
System.Net.Security (14)
System\Net\Security\SslSessionsCache.cs (14)
108if (s_cachedCreds.IsEmpty) 110if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found, Current Cache Count = {s_cachedCreds.Count}"); 120if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found or invalid, Current Cache Count = {s_cachedCreds.Count}"); 131return s_cachedCreds.TryGetValue(key, out SafeCredentialReference? cached) ? cached.Target : null; 153if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Refused to cache an Invalid Handle {creds}, Current Cache Count = {s_cachedCreds.Count}"); 164lock (s_cachedCreds) 177s_cachedCreds[key] = cached; 178if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Caching New Handle = {creds}, Current Cache Count = {s_cachedCreds.Count}"); 207if ((s_cachedCreds.Count % CheckExpiredModulo) == 0) 209KeyValuePair<SslCredKey, SafeCredentialReference>[] toRemoveAttempt = s_cachedCreds.ToArray(); 218s_cachedCreds.TryRemove(toRemoveAttempt[i].Key, out _); 226s_cachedCreds[toRemoveAttempt[i].Key] = cached; 230s_cachedCreds.TryRemove(toRemoveAttempt[i].Key, out _); 234if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Scavenged cache, New Cache Count = {s_cachedCreds.Count}");