14 references to s_cachedCreds
System.Net.Security (14)
System\Net\Security\SslSessionsCache.cs (14)
115if (s_cachedCreds.IsEmpty) 117if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found, Current Cache Count = {s_cachedCreds.Count}"); 126if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found or invalid, Current Cache Count = {s_cachedCreds.Count}"); 149return s_cachedCreds.TryGetValue(key, out SafeCredentialReference? cached) ? cached.Target : null; 173if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Refused to cache an Invalid Handle {creds}, Current Cache Count = {s_cachedCreds.Count}"); 184lock (s_cachedCreds) 197s_cachedCreds[key] = cached; 198if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Caching New Handle = {creds}, Current Cache Count = {s_cachedCreds.Count}"); 227if ((s_cachedCreds.Count % CheckExpiredModulo) == 0) 229KeyValuePair<SslCredKey, SafeCredentialReference>[] toRemoveAttempt = s_cachedCreds.ToArray(); 238s_cachedCreds.TryRemove(toRemoveAttempt[i].Key, out _); 246s_cachedCreds[toRemoveAttempt[i].Key] = cached; 250s_cachedCreds.TryRemove(toRemoveAttempt[i].Key, out _); 254if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Scavenged cache, New Cache Count = {s_cachedCreds.Count}");