1 write to _sslSessions
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
162_sslSessions = new Dictionary<string, IntPtr>();
20 references to _sslSessions
System.Net.Security (20)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (20)
131if (_sslSessions != null) 138lock (_sslSessions) 140foreach (IntPtr session in _sslSessions.Values) 145_sslSessions.Clear(); 160Debug.Assert(_sslSessions == null); 171Debug.Assert(_sslSessions != null && session != IntPtr.Zero); 173if (_sslSessions == null || namePtr == null) 190lock (_sslSessions) 192if (!_sslSessions.TryAdd(targetName, session)) 195_sslSessions.Remove(targetName, out oldSession); 196bool added = _sslSessions.TryAdd(targetName, session); 221Debug.Assert(_sslSessions != null); 226if (_sslSessions != null && targetName != null) 230lock (_sslSessions) 232if (_sslSessions.TryGetValue(targetName, out IntPtr existingSession) && existingSession == session) 234removed = _sslSessions.Remove(targetName, out oldSession); 250Debug.Assert(_sslSessions != null); 252if (_sslSessions == null || string.IsNullOrEmpty(name)) 262lock (_sslSessions) 264if (_sslSessions.TryGetValue(name, out IntPtr session))