Ejemplo n.º 1
0
 public void CacheScript(EvaluationScriptCacheKey key, Type type)
 {
     EvaluationDomain domain = this;
     lock (domain)
     {
         this._cache[key] = type;
     }
 }
Ejemplo n.º 2
0
        public void CacheScript(EvaluationScriptCacheKey key, Type type)
        {
            EvaluationDomain domain = this;

            lock (domain)
            {
                this._cache[key] = type;
            }
        }
Ejemplo n.º 3
0
        public override bool Equals(object o)
        {
            EvaluationScriptCacheKey key = o as EvaluationScriptCacheKey;

            if (!(key._contextType == this._contextType))
            {
            }
            return((key != null) ? (key._code == this._code) : false);
        }
Ejemplo n.º 4
0
 public Type GetCachedScript(EvaluationScriptCacheKey key)
 {
     EvaluationDomain domain = this;
     lock (domain)
     {
         object obj1 = this._cache[key];
         if (!(obj1 is Type))
         {
         }
         return (Type) RuntimeServices.Coerce(obj1, typeof(Type));
     }
 }
Ejemplo n.º 5
0
        public Type GetCachedScript(EvaluationScriptCacheKey key)
        {
            EvaluationDomain domain = this;

            lock (domain)
            {
                object obj1 = this._cache[key];
                if (!(obj1 is Type))
                {
                }
                return((Type)RuntimeServices.Coerce(obj1, typeof(Type)));
            }
        }
Ejemplo n.º 6
0
 public Evaluator(EvaluationContext context, string code)
 {
     if (code == null)
     {
         throw new ArgumentNullException("code");
     }
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     this._context = context;
     this._code = code;
     this._cacheKey = new EvaluationScriptCacheKey(context.GetType(), code);
 }
Ejemplo n.º 7
0
 public Evaluator(EvaluationContext context, string code)
 {
     if (code == null)
     {
         throw new ArgumentNullException("code");
     }
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     this._context  = context;
     this._code     = code;
     this._cacheKey = new EvaluationScriptCacheKey(context.GetType(), code);
 }