예제 #1
0
        public Dictionary <string, object> estatusFlujo()
        {
            Dictionary <string, Object> res = new Dictionary <string, Object>();

            res.Add("resultado", MontosConsolidadosProcess.getEstatusFlujo());
            return(res);
        }
예제 #2
0
파일: Program.cs 프로젝트: VectorGia/GiaApi
        public static void Main(string[] args)
        {
            // NLog: setup the logger first to catch all errors
            var logger = NLogBuilder.ConfigureNLog("nlog.config").GetCurrentClassLogger();

            try
            {
                ExtraccionProcess.ExtraccionContableSchedule();
                ExtraccionProcess.ExtraccionFlujoSchedule();
                MontosConsolidadosProcess.MontosContableSchedule();
                MontosConsolidadosProcess.MontosFlujoSchedule();
                CreateWebHostBuilder(args).Build().Run();
            }
            catch (Exception ex)
            {
                //NLog: catch setup errors
                logger.Error(ex, "Stopped program because of exception");
                throw;
            }
            finally
            {
                // Ensure to flush and stop internal timers/threads before application-exit (Avoid segmentation fault on Linux)
                LogManager.Shutdown();
            }
        }
예제 #3
0
        public Dictionary <string, object> montosRescheduleFlujo([FromBody] Dictionary <string, string> cronExpr)
        {
            MontosConsolidadosProcess.rescheduleFlujo(cronExpr["valor"], 0);
            Dictionary <string, Object> res = new Dictionary <string, Object>();

            res.Add("resultado", Boolean.TrueString);
            return(res);
        }