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)
140
if (
_sslSessions
!= null)
147
lock (
_sslSessions
)
149
foreach (IntPtr session in
_sslSessions
.Values)
154
_sslSessions
.Clear();
169
Debug.Assert(
_sslSessions
== null);
180
Debug.Assert(
_sslSessions
!= null && session != IntPtr.Zero);
182
if (
_sslSessions
== null || namePtr == null)
199
lock (
_sslSessions
)
201
if (!
_sslSessions
.TryAdd(targetName, session))
204
_sslSessions
.Remove(targetName, out oldSession);
205
bool added =
_sslSessions
.TryAdd(targetName, session);
230
Debug.Assert(
_sslSessions
!= null);
235
if (
_sslSessions
!= null && targetName != null)
239
lock (
_sslSessions
)
241
if (
_sslSessions
.TryGetValue(targetName, out IntPtr existingSession) && existingSession == session)
243
removed =
_sslSessions
.Remove(targetName, out oldSession);
259
Debug.Assert(
_sslSessions
!= null);
261
if (
_sslSessions
== null || string.IsNullOrEmpty(name))
266
lock (
_sslSessions
)
268
if (
_sslSessions
.TryGetValue(name, out IntPtr session))