16 references to GetValue
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Threading\LazyValue`1.cs (2)
46/// The factory function will be called at most once, when <see cref="GetValue"/> is first called. 47/// If multiple threads call <see cref="GetValue"/> concurrently, only one thread will execute
Microsoft.AspNetCore.Razor.Utilities.Shared.UnitTests (14)
Threading\LazyValueTests.cs (14)
28var result1 = lazy.GetValue(); 29var result2 = lazy.GetValue(); 30var result3 = lazy.GetValue(); 47var result = lazy.GetValue(); 60var result = lazy.GetValue(); 73var result = lazy.GetValue(); 87var exception = Assert.Throws<InvalidOperationException>(() => lazy.GetValue()); 108Assert.Throws<InvalidOperationException>(() => lazy.GetValue()); 111var result = lazy.GetValue(); 138var result = lazy.GetValue(); 169allResults.Add(lazy.GetValue()); 439var result1 = lazy.GetValue(); 440var result2 = lazy.GetValue(); 471var result = lazy.GetValue();