Ejemplo n.º 1
0
        public override void Setup()
        {
            var settings = new JavaScriptRuntimeSettings();

            runtime_ = new JavaScriptRuntime(settings);
            engine_  = runtime_.CreateEngine();
        }
Ejemplo n.º 2
0
        public void Initialize()
        {
            var settings = new JavaScriptRuntimeSettings();

            runtime_ = new JavaScriptRuntime(settings);
            engine_  = runtime_.CreateEngine();
        }
Ejemplo n.º 3
0
        private void Eval_Click(object sender, RoutedEventArgs e)
        {
            var settings = new JavaScriptRuntimeSettings();
            var runtime  = new JavaScriptRuntime(settings);
            var engine   = runtime.CreateEngine();

            var result = engine.Execute(new Microsoft.Scripting.ScriptSource("[eval code]", input.Text));

            output.Text = result.ToString();
        }
        public override void Setup()
        {
            var settings = new JavaScriptRuntimeSettings()
            {
                AllowScriptInterrupt = true,
            };

            runtime_ = new JavaScriptRuntime(settings);
            engine_  = runtime_.CreateEngine();
        }
        public void Setup()
        {
            var settings = new JavaScriptRuntimeSettings()
            {
                EnableIdleProcessing = true,
            };

            runtime_ = new JavaScriptRuntime(settings);
            engine_  = runtime_.CreateEngine();
        }