1 write to _stopWatches
Microsoft.Extensions.AI.Evaluation.Reporting (1)
ResponseCachingChatClient.cs (1)
30
_stopWatches
= new ConcurrentDictionary<string, Stopwatch>();
4 references to _stopWatches
Microsoft.Extensions.AI.Evaluation.Reporting (4)
ResponseCachingChatClient.cs (4)
42
_ =
_stopWatches
.AddOrUpdate(key, addValue: stopwatch, updateValueFactory: (_, _) => stopwatch);
75
_ =
_stopWatches
.AddOrUpdate(key, addValue: stopwatch, updateValueFactory: (_, _) => stopwatch);
102
if (
_stopWatches
.TryRemove(key, out Stopwatch? stopwatch))
127
if (
_stopWatches
.TryRemove(key, out Stopwatch? stopwatch))