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)
131
if (
_sslSessions
!= null)
138
lock (
_sslSessions
)
140
foreach (IntPtr session in
_sslSessions
.Values)
145
_sslSessions
.Clear();
160
Debug.Assert(
_sslSessions
== null);
171
Debug.Assert(
_sslSessions
!= null && session != IntPtr.Zero);
173
if (
_sslSessions
== null || namePtr == null)
190
lock (
_sslSessions
)
192
if (!
_sslSessions
.TryAdd(targetName, session))
195
_sslSessions
.Remove(targetName, out oldSession);
196
bool added =
_sslSessions
.TryAdd(targetName, session);
221
Debug.Assert(
_sslSessions
!= null);
226
if (
_sslSessions
!= null && targetName != null)
230
lock (
_sslSessions
)
232
if (
_sslSessions
.TryGetValue(targetName, out IntPtr existingSession) && existingSession == session)
234
removed =
_sslSessions
.Remove(targetName, out oldSession);
250
Debug.Assert(
_sslSessions
!= null);
252
if (
_sslSessions
== null || string.IsNullOrEmpty(name))
262
lock (
_sslSessions
)
264
if (
_sslSessions
.TryGetValue(name, out IntPtr session))