Ejemplo n.º 1
0
        public PredictionContext getCachedContext(PredictionContext context)
        {
            if (sharedContextCache == null)
            {
                return(context);
            }

            lock (sharedContextCache)
            {
                PredictionContext.IdentityHashMap visited =
                    new PredictionContext.IdentityHashMap();
                return(PredictionContext.GetCachedContext(context,
                                                          sharedContextCache,
                                                          visited));
            }
        }
Ejemplo n.º 2
0
 public virtual PredictionContext GetCachedContext(PredictionContext context)
 {
     return(PredictionContext.GetCachedContext(context, contextCache, new PredictionContext.IdentityHashMap()));
 }