public Dictionary <string, object> estatusFlujo() { Dictionary <string, Object> res = new Dictionary <string, Object>(); res.Add("resultado", ExtraccionProcess.getEstatusFlujo()); return(res); }
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(); } }
public Dictionary <string, object> rescheduleFlujo([FromBody] Dictionary <string, string> cronExpr) { ExtraccionProcess.rescheduleFlujo(cronExpr["valor"], 0); Dictionary <string, Object> res = new Dictionary <string, Object>(); res.Add("resultado", Boolean.TrueString); return(res); }