3 instantiations of CacheEntry
System.Text.Json (3)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (3)
294
return new
CacheEntry
(typeInfo);
299
return new
CacheEntry
(edi);
375
candidate = new
CacheEntry
(ExceptionDispatchInfo.Capture(nse));
12 references to CacheEntry
System.Text.Json (12)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (12)
240
private readonly ConcurrentDictionary<Type,
CacheEntry
> _cache = new();
262
CacheEntry
entry = GetOrAddCacheEntry(type);
270
_cache.TryGetValue(type, out
CacheEntry
? entry);
280
private
CacheEntry
GetOrAddCacheEntry(Type type)
289
private static
CacheEntry
CreateCacheEntry(Type type, CachingContext context)
303
private JsonTypeInfo? FallBackToNearestAncestor(Type type,
CacheEntry
entry)
307
CacheEntry
? nearestAncestor = entry.IsNearestAncestorResolved
316
private
CacheEntry
? DetermineNearestAncestor(Type type,
CacheEntry
entry)
331
CacheEntry
? candidate = null;
354
CacheEntry
interfaceEntry = GetOrAddCacheEntry(interfaceType);
397
public
CacheEntry
? NearestAncestor;