5 references to GetSharedInstance
Microsoft.AspNetCore.Cryptography.Internal (1)
Cng\CachedAlgorithmHandles.cs (1)
89return WeakReferenceHelpers.GetSharedInstance(ref cachedAlgorithmInfo._algorithmHandle, cachedAlgorithmInfo._factory);
Microsoft.AspNetCore.Cryptography.Internal.Tests (4)
WeakReferenceHelpersTests.cs (4)
20var retVal = WeakReferenceHelpers.GetSharedInstance(ref wr, () => newInstance); 39var retVal = WeakReferenceHelpers.GetSharedInstance(ref wr, () => newInstance); 58var retVal = WeakReferenceHelpers.GetSharedInstance(ref wr, () => 61WeakReferenceHelpers.GetSharedInstance(ref wr, () => instanceThatWillBeCreatedFirst);