18 references to Lazy
Microsoft.AspNetCore.HttpsPolicy (1)
HttpsRedirectionMiddleware.cs (1)
48_httpsPort = new Lazy<int>(httpsRedirectionOptions.HttpsPort.Value);
Microsoft.Extensions.Options (1)
OptionsCache.cs (1)
100return _cache.TryAdd(name ?? Options.DefaultName, new Lazy<TOptions>(
System.Security.Cryptography (16)
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (1)
374_key = new Lazy<SafeDsaHandle>(newKey);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (4)
22_key = new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(curve, out int keySize)); 79_key = new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(value)); 88_key = new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(curve, out int keySizeValue)); 107_key = new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.ImportECKey(parameters, out int keySize));
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (3)
33_key = new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(curve, out int keySize)); 254_key = new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.GenerateECKey(curve, out int keySize)); 266_key = new Lazy<SafeEvpPKeyHandle>(ECOpenSsl.ImportECKey(parameters, out int keySize));
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.cs (2)
31_key = new Lazy<SafeEcKeyHandle>(key); 58_key = new Lazy<SafeEcKeyHandle>(key);
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.ImportExport.cs (1)
51_key = new Lazy<SafeEcKeyHandle>(key);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
635_key = new Lazy<SafeEvpPKeyHandle>(newKey);
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (2)
39_key = new Lazy<SafeEvpPKeyHandle>(pkeyHandle.DuplicateHandle()); 68_key = new Lazy<SafeEvpPKeyHandle>(Interop.Crypto.CreateEvpPkeyFromEcKey(ecKeyHandle));
System\Security\Cryptography\ECDsaOpenSsl.cs (2)
39_key = new Lazy<SafeEvpPKeyHandle>(pkeyHandle.DuplicateHandle()); 68_key = new Lazy<SafeEvpPKeyHandle>(Interop.Crypto.CreateEvpPkeyFromEcKey(ecKeyHandle));