1 write to _sslSessions
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
161_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)
130if (_sslSessions != null) 137lock (_sslSessions) 139foreach (IntPtr session in _sslSessions.Values) 144_sslSessions.Clear(); 159Debug.Assert(_sslSessions == null); 170Debug.Assert(_sslSessions != null && session != IntPtr.Zero); 172if (_sslSessions == null || namePtr == IntPtr.Zero) 189lock (_sslSessions) 191if (!_sslSessions.TryAdd(targetName, session)) 194_sslSessions.Remove(targetName, out oldSession); 195bool added = _sslSessions.TryAdd(targetName, session); 220Debug.Assert(_sslSessions != null); 225if (_sslSessions != null && targetName != null) 229lock (_sslSessions) 231if (_sslSessions.TryGetValue(targetName, out IntPtr existingSession) && existingSession == session) 233removed = _sslSessions.Remove(targetName, out oldSession); 249Debug.Assert(_sslSessions != null); 251if (_sslSessions == null || string.IsNullOrEmpty(name)) 261lock (_sslSessions) 263if (_sslSessions.TryGetValue(name, out IntPtr session))