Exemple #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));
            }
        }
Exemple #2
0
 public virtual PredictionContext GetCachedContext(PredictionContext context)
 {
     return(PredictionContext.GetCachedContext(context, contextCache, new PredictionContext.IdentityHashMap()));
 }