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)
130
if (
_sslSessions
!= null)
137
lock (
_sslSessions
)
139
foreach (IntPtr session in
_sslSessions
.Values)
144
_sslSessions
.Clear();
159
Debug.Assert(
_sslSessions
== null);
170
Debug.Assert(
_sslSessions
!= null && session != IntPtr.Zero);
172
if (
_sslSessions
== null || namePtr == IntPtr.Zero)
189
lock (
_sslSessions
)
191
if (!
_sslSessions
.TryAdd(targetName, session))
194
_sslSessions
.Remove(targetName, out oldSession);
195
bool added =
_sslSessions
.TryAdd(targetName, session);
220
Debug.Assert(
_sslSessions
!= null);
225
if (
_sslSessions
!= null && targetName != null)
229
lock (
_sslSessions
)
231
if (
_sslSessions
.TryGetValue(targetName, out IntPtr existingSession) && existingSession == session)
233
removed =
_sslSessions
.Remove(targetName, out oldSession);
249
Debug.Assert(
_sslSessions
!= null);
251
if (
_sslSessions
== null || string.IsNullOrEmpty(name))
261
lock (
_sslSessions
)
263
if (
_sslSessions
.TryGetValue(name, out IntPtr session))