1 instantiation of CachedScope
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
647
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))
566
var
scope = GetOrAddCachedScope(
580
_cachedScopesById.TryGetValue(record.ScopeId, out
var
scope))
639
private
CachedScope
GetOrAddCachedScope(long scopeId, string scopeName, string scopeVersion, KeyValuePair<string, string>[] attributes)
641
if (_cachedScopesById.TryGetValue(scopeId, out
var
cachedScope))
653
private static CachedResourceScope AddCachedScope(CachedResource resource,
CachedScope
scope, CachedTelemetryType telemetryType)
724
var
scope = _cachedScopesById[scopeId];
771
private sealed class CachedResourceScope(
CachedScope
scope)
773
public
CachedScope
Scope { get; } = scope;