1 instantiation of CachedScope
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
649
cachedScope = new
CachedScope
(scopeId, scope);
11 references to CachedScope
Aspire.Dashboard (11)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (11)
25
private readonly Dictionary<string,
CachedScope
> _cachedScopesByName = new(StringComparer.Ordinal);
26
private readonly Dictionary<long,
CachedScope
> _cachedScopesById = [];
201
if (!_cachedScopesByName.TryGetValue(incomingScope.Name, out
var
cachedScope))
568
var
scope = GetOrAddCachedScope(
582
_cachedScopesById.TryGetValue(record.ScopeId, out
var
scope))
641
private
CachedScope
GetOrAddCachedScope(long scopeId, string scopeName, string scopeVersion, KeyValuePair<string, string>[] attributes)
643
if (_cachedScopesById.TryGetValue(scopeId, out
var
cachedScope))
655
private static CachedResourceScope AddCachedScope(CachedResource resource,
CachedScope
scope, CachedTelemetryType telemetryType)
726
var
scope = _cachedScopesById[scopeId];
773
private sealed class CachedResourceScope(
CachedScope
scope)
775
public
CachedScope
Scope { get; } = scope;