コード例 #1
0
        public ProcesoLog()
        {
            InitializeComponent();
            _eventLog = new Log("Estatus de Servicio", "Servicio de Monitor de Procesos");

            conectores = new Conectores();
        }
コード例 #2
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
            Conectores conectores = new Conectores();
            conectores.Start_Visitas();
#endif
        }