コード例 #1
0
        public bool Get([FromUri] int pTaskId)
        {
            var _srcs = new ScriptsEngineLib.ScriptsEngine(Properties.Settings.Default.ServiceUrl, Properties.Settings.Default.PAT);

            _srcs.Debug = Properties.Settings.Default.Debug;
            if (_srcs.SetCustomSettings(Properties.Settings.Default.CustomSettingsJson))
            {
                _srcs.RunTaskScript(pTaskId);
            }

            return(true);
        }
コード例 #2
0
        public ActionResult RunConfirmed(int id)
        {
            var _srcs = new ScriptsEngineLib.ScriptsEngine(Properties.Settings.Default.ServiceUrl, Properties.Settings.Default.PAT);

            _srcs.Debug = Properties.Settings.Default.Debug;
            if (_srcs.SetCustomSettings(Properties.Settings.Default.CustomSettingsJson))
            {
                _srcs.RunTaskScript(id);
            }

            return(RedirectToAction("Index", "RunHistories"));
        }