public void Post([FromBody] TFHelper.WorkItemEvent.WorkItemEventUpdated value)
        {
            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.ProcessWokItemUpdatedEvent(value);
            }
        }
        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);
        }
Esempio n. 3
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"));
        }