示例#1
0
        public Boolean ScheduleEvented(String ScriptsJSON)
        {
            String             jSonC  = StringCompression.DecompressString(ScriptsJSON);
            ScriptStructureNew Script = (ScriptStructureNew)Newtonsoft.Json.JsonConvert.DeserializeObject(jSonC, typeof(ScriptStructureNew));

            DBScheduleEngine.UpdateSchedule(Script);
            return(true);
        }
示例#2
0
        public Boolean DelayScheduleEvented(String ScriptsJSON)
        {
            String jSonC = StringCompression.DecompressString(ScriptsJSON);

            ScriptStructureNew[] Scripts = (ScriptStructureNew[])Newtonsoft.Json.JsonConvert.DeserializeObject(jSonC, typeof(ScriptStructureNew[]));

            foreach (ScriptStructureNew Script in Scripts)
            {
                DBScheduleEngine.UpdateSchedule(Script);
            }

            Console.WriteLine("RECEIVED DelayScheduleEvented() = " + Scripts.Count());

            return(true);
        }