3 references to CacheContext
System.Text.Json (3)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
119typeInfo = CacheContext.GetOrAddTypeInfo(type, fallBackToNearestAncestorType);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
710lock (Options.CacheContext) 741Debug.Assert(Monitor.IsEntered(Options.CacheContext), "Configure called directly, use EnsureConfigured which synchronizes access to this method");