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