Ejemplo n.º 1
0
        public IActionResult DebugStop([FromQuery] string FileName)
        {
            try
            {
                string result = ComposerNew.StopService(FileName);
                return(Ok(result));
            }
            catch (Exception e)
            {
                Program.logger.Error("ERR_NO_SUCH_RUNNING_COMPOSE_FILE_FOUND: " + FileName);
                Program.logger.Error(e.Message);

                return(NotFound("ERR_NO_SUCH_RUNNING_COMPOSE_FILE_FOUND: " + FileName));
            }
        }
Ejemplo n.º 2
0
        public IActionResult StopRunningFile([FromQuery] String FileName)
        {
            try
            {
                string result      = ComposerNew.StopService(FileName);
                var    RunningList = ComposerNew.GetRunningServices();
                return(View("RunningReadyFiles", RunningList));
            }
            catch (Exception e)
            {
                Program.logger.Error("ERR_NO_SUCH_RUNNING_COMPOSE_FILE_FOUND: " + FileName);
                Program.logger.Error(e.Message);

                return(NotFound("ERR_NO_SUCH_RUNNING_COMPOSE_FILE_FOUND: " + FileName));
            }
        }