Esempio n. 1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static void Main()
        {
#if (!DEBUG)
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new ProcesoLog()
            };
            ServiceBase.Run(ServicesToRun);
#else
            Excepciones excepciones = new Excepciones();
            excepciones.Start_Visitas();
#endif
        }
 public void OnTimer(object sender, ElapsedEventArgs args)
 {
     _eventLog.CrearLog("Monitoreando El Sistema", EventLogEntryType.Information, eventId++);
     excepciones.Start_Visitas();
 }