1 write to _values
Microsoft.Extensions.Telemetry (1)
src\Shared\Memoization\MemoizedFunction.cs (1)
142
_values
= new(Concurrency, Capacity);
2 references to _values
Microsoft.Extensions.Telemetry (2)
src\Shared\Memoization\MemoizedFunction.cs (2)
150
if (
_values
.TryGetValue(args, out var result))
155
return
_values
.GetOrAdd(args, new Lazy<TResult>(() => _function(arg1, arg2))).Value;