24 references to GetValue
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Threading\LazyValue`2.cs (2)
54/// The factory function will be called at most once, when <see cref="GetValue(TArg)"/> is first called. 55/// If multiple threads call <see cref="GetValue(TArg)"/> concurrently, only one thread will execute
Microsoft.AspNetCore.Razor.Utilities.Shared.UnitTests (19)
Threading\LazyValueTests.cs (19)
194var result1 = lazy.GetValue("input"); 195var result2 = lazy.GetValue("different-input"); // Should ignore this arg 196var result3 = lazy.GetValue("another-input"); // Should ignore this arg too 218var result = lazy.GetValue(inputArg); 231var result = lazy.GetValue(5); 244var result = lazy.GetValue(null); 257var result = lazy.GetValue("test"); 271var exception = Assert.Throws<ArgumentException>(() => lazy.GetValue("test")); 292Assert.Throws<InvalidOperationException>(() => lazy.GetValue("test")); 295var result = lazy.GetValue("test"); 324var result = lazy.GetValue($"input-{threadIndex}"); 359Assert.Throws<InvalidOperationException>(() => lazy.GetValue(100)); 362var result = lazy.GetValue(200); 379var result1 = lazy.GetValue("first"); 380var result2 = lazy.GetValue("second"); 381var result3 = lazy.GetValue("third"); 415allResults.Add(lazy.GetValue(threadIndex + j)); 455var result = lazy.GetValue(complexArg); 484var result = lazy.GetValue(42);
Microsoft.CodeAnalysis.Razor.Compiler (3)
Language\TagHelperBinding.cs (1)
43public TagHelperCollection TagHelpers => _lazyTagHelpers.GetValue(AllBoundRules);
Language\TagHelperCollection.SegmentCollectionBase.cs (2)
64return _lazyLookupTable.GetValue(this); 69=> _lazyChecksum.GetValue(this);