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)
28
var result1 = lazy.
GetValue
();
29
var result2 = lazy.
GetValue
();
30
var result3 = lazy.
GetValue
();
47
var result = lazy.
GetValue
();
60
var result = lazy.
GetValue
();
73
var result = lazy.
GetValue
();
87
var exception = Assert.Throws<InvalidOperationException>(() => lazy.
GetValue
());
108
Assert.Throws<InvalidOperationException>(() => lazy.
GetValue
());
111
var result = lazy.
GetValue
();
138
var result = lazy.
GetValue
();
169
allResults.Add(lazy.
GetValue
());
439
var result1 = lazy.
GetValue
();
440
var result2 = lazy.
GetValue
();
471
var result = lazy.
GetValue
();