Exemple #1
0
        public static async Task ReadAndExecute(this ChakraHost host, string filename, string folder)
        {
            var script = await CoreTools.GetPackagedFileContentAsync(folder, filename);

            host.RunScript(script);
        }
Exemple #2
0
        async Task ReadAndExecute(string filename)
        {
            var script = await CoreTools.GetPackagedFileContentAsync("refs", filename);

            host.RunScript(script);
        }