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)
642lock (Options.CacheContext) 673Debug.Assert(Monitor.IsEntered(Options.CacheContext), "Configure called directly, use EnsureConfigured which synchronizes access to this method");