1 write to _sslSessions
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
171_sslSessions = new Dictionary<string, IntPtr>();
20 references to _sslSessions
System.Net.Security (20)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (20)
140if (_sslSessions != null) 147lock (_sslSessions) 149foreach (IntPtr session in _sslSessions.Values) 154_sslSessions.Clear(); 169Debug.Assert(_sslSessions == null); 180Debug.Assert(_sslSessions != null && session != IntPtr.Zero); 182if (_sslSessions == null || namePtr == null) 199lock (_sslSessions) 201if (!_sslSessions.TryAdd(targetName, session)) 204_sslSessions.Remove(targetName, out oldSession); 205bool added = _sslSessions.TryAdd(targetName, session); 230Debug.Assert(_sslSessions != null); 235if (_sslSessions != null && targetName != null) 239lock (_sslSessions) 241if (_sslSessions.TryGetValue(targetName, out IntPtr existingSession) && existingSession == session) 243removed = _sslSessions.Remove(targetName, out oldSession); 259Debug.Assert(_sslSessions != null); 261if (_sslSessions == null || string.IsNullOrEmpty(name)) 266lock (_sslSessions) 268if (_sslSessions.TryGetValue(name, out IntPtr session))