3 instantiations of CachedCertificateKey
System.Net.Http.WinHttpHandler (3)
System\Net\Http\WinHttpRequestCallback.cs (3)
145
if (state.Handler.TryRemoveCertificateFromCache(new
CachedCertificateKey
(connectedIPAddress, state.RequestMessage)))
357
state.Handler.GetCertificateFromCache(new
CachedCertificateKey
(ipAddress, state.RequestMessage), out byte[]? rawCertData) &&
416
state.Handler.AddCertificateToCache(new
CachedCertificateKey
(ipAddress, state.RequestMessage), serverCertificate.RawData);
7 references to CachedCertificateKey
System.Net.Http.WinHttpHandler (7)
System\Net\Http\CachedCertificateValue.cs (2)
23
internal readonly struct CachedCertificateKey : IEquatable<
CachedCertificateKey
>
34
public bool Equals(
CachedCertificateKey
other) =>
System\Net\Http\WinHttpHandler.cs (5)
100
private readonly ConcurrentDictionary<
CachedCertificateKey
, CachedCertificateValue> _cachedCertificates = new();
1708
internal bool GetCertificateFromCache(
CachedCertificateKey
key, [NotNullWhen(true)] out byte[]? rawCertificateBytes)
1721
internal void AddCertificateToCache(
CachedCertificateKey
key, byte[] rawCertificateData)
1729
internal bool TryRemoveCertificateFromCache(
CachedCertificateKey
key)
1751
foreach (KeyValuePair<
CachedCertificateKey
, CachedCertificateValue> kvPair in _cachedCertificates)