1 instantiation of SafeCredentialReference
System.Net.Security (1)
src\libraries\Common\src\System\Net\Security\SafeCredentialReference.cs (1)
25
return new
SafeCredentialReference
(target);
13 references to SafeCredentialReference
System.Net.Security (13)
src\libraries\Common\src\System\Net\Security\SafeCredentialReference.cs (1)
18
internal static
SafeCredentialReference
? CreateReference(SafeFreeCredentials target)
src\libraries\Common\src\System\Net\Security\SSPIHandleCache.cs (4)
15
private static readonly
SafeCredentialReference
?[] s_cacheSlots = new
SafeCredentialReference
[MaxCacheSize + 1];
22
SafeCredentialReference
? newRef =
SafeCredentialReference
.CreateReference(newHandle);
System\Net\Security\SslSessionsCache.cs (8)
17
private static readonly ConcurrentDictionary<SslCredKey,
SafeCredentialReference
> s_cachedCreds =
18
new ConcurrentDictionary<SslCredKey,
SafeCredentialReference
>();
131
return s_cachedCreds.TryGetValue(key, out
SafeCredentialReference
? cached) ? cached.Target : null;
169
SafeCredentialReference
? cached =
SafeCredentialReference
.CreateReference(creds);
209
KeyValuePair<SslCredKey,
SafeCredentialReference
>[] toRemoveAttempt = s_cachedCreds.ToArray();
213
SafeCredentialReference
? cached = toRemoveAttempt[i].Value;
223
cached =
SafeCredentialReference
.CreateReference(creds);