Beispiel #1
0
 protected EEContext()
 {
     if (Context == null)
     {
         Context = this;
     }
 }
Beispiel #2
0
        public override EvalContext CreateContext(CancellationTokenSource cancel = null)
        {
            var res = EEContext.Create(cancel ?? new System.Threading.CancellationTokenSource());

            res.Evaluator      = Evaluator;
            res.BasicVariables = Variables;
            return(res);
        }
Beispiel #3
0
        public new static EvalContext Create(CancellationTokenSource cancel)
        {
            var res = new EEContext
            {
                CancelToken = cancel
            };

            return(res);
        }