예제 #1
0
        public async void RunWithGlobalVariables_Succeed()
        {
            Action act = () => { };

            var container = new Container();

            container.Register(act, "act");

            var runner = new JsCodeRunner("act();", container);

            await runner.RunAsync();
        }
예제 #2
0
 public async void Run()
 {
     var runner = new JsCodeRunner("let a = 1;", new Container());
     await runner.RunAsync();
 }