Example #1
0
        public override EvalContext CreateContext(CancellationTokenSource cancel = null)
        {
            var res = EEContext.Create(cancel ?? new System.Threading.CancellationTokenSource());

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

            return(res);
        }