Beispiel #1
0
        private void timer1_Tick(object sender, ElapsedEventArgs e)
        {
            LectorRSS lector = new LectorRSS();

            lector.RSS_XML();
            Librería.WriteErrorLog("Actualización completada");
        }
Beispiel #2
0
 protected override void OnStart(string[] args)
 {
     timer1 = new Timer();
     this.timer1.Interval = 300000;
     this.timer1.Elapsed += new System.Timers.ElapsedEventHandler(this.timer1_Tick);
     timer1.Enabled       = true;
     Librería.WriteErrorLog("Comienzo actualización de datos");
 }
Beispiel #3
0
 protected override void OnStop()
 {
     timer1.Enabled = false;
     Librería.WriteErrorLog("El servicio se ha detenido");
 }