//**************************************************************************** Por JC void tmpServicio_Elapsed_Leer_FTP(object sender, ElapsedEventArgs e) { if (ConfigurationManager.AppSettings["processLeerFTP"] == "1") { // verificar si el servicio se esta ejecutando if (wenproceso_Leer_FTP == 0) { wenproceso_Leer_FTP = 1; Leer_Ftp oLeer_Ftp = new Leer_Ftp(); oLeer_Ftp.Genera_Interface_Lectura(); wenproceso_Leer_FTP = 0; } } }
//**************************************************************************** Por JC void tmpServicio_Elapsed_Leer_FTP(object sender, ElapsedEventArgs e) { ConfigurationManager.RefreshSection("appSettings"); // Primero actualiza seccion try { if (ConfigurationManager.AppSettings["processLeerFTP"] == "1") { // verificar si el servicio se esta ejecutando if (wenproceso_Leer_FTP == 0) { wenproceso_Leer_FTP = 1; Leer_Ftp oLeer_Ftp = new Leer_Ftp(); oLeer_Ftp.Genera_Interface_Lectura(); wenproceso_Leer_FTP = 0; } } } catch (Exception ex) { wenproceso_Leer_FTP = 0; } }