Esempio n. 1
0
 public JsDownloadSource(string jsContent, string name, bool debug = false, string debugSource = "")
 {
     host = new ChakraHost(debug, false);
     host.ProjectNamespace("Windows.Data.Xml.Dom");
     host.ProjectNamespace("Windows.Networking");
     host.ProjectNamespace("Windows.Web");
     host.ProjectNamespace("LightLrcComponent");
     host.ProjectObjectToGlobal(xml, "xmlhttp");
     host.ProjectObjectToGlobal(api, "api");
     host.RunScript(jsContent, debugSource);
     host.RemoveContextOnCurrentThread();
     Name = name;
 }
Esempio n. 2
0
        public ChakraSMS()
        {
            Chakra = new ChakraHost();

            /*
             *  ====================================
             *  = NAMESPACES CHAKRAHOST REGISTERED =
             *  ====================================
             */

            Chakra.ProjectNamespace("System");
            Chakra.ProjectNamespace("Windows.UI.Xaml.Controls");
            Chakra.ProjectNamespace("Windows.ApplicationModel.DataTransfer");
            Chakra.ProjectNamespace("Windows.UI.Popups");
            Chakra.ProjectNamespace("Windows.Foundation");
            Chakra.ProjectNamespace("Windows.Storage");
            Chakra.ProjectNamespace("SerrisModulesServer");
            Chakra.ProjectNamespace("SerrisModulesServer.Manager");
            Chakra.ProjectNamespace("SerrisModulesServer.Items");

            Chakra.ProjectNamespace("Windows.UI.Notifications");
            Chakra.ProjectNamespace("Windows.Data.Xml.Dom");
            Chakra.ProjectNamespace("SCEELibs.Helpers");
        }