public void Add( StoreName storeName, StoreLocation storeLocation, X509FindType findType, string findValue, X509Certificate2 certificate) { string key = ClientCertificateCache.GetKey(storeName, storeLocation, findType, findValue); lock (this.thisLock) { this.cache[key] = certificate; } }
public bool TryGet( StoreName storeName, StoreLocation storeLocation, X509FindType findType, string findValue, out X509Certificate2 certificate) { string key = ClientCertificateCache.GetKey(storeName, storeLocation, findType, findValue); lock (this.thisLock) { this.cache.TryGetValue(key, out certificate); } return(certificate != null); }