Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            try
            {
                this.Inicialize();

                log.Information("Inicializamos proveedores. _proveedores.Start()");
                _proveedores.Start();
            }
            catch (Exception ex)
            {
                log.Error("Initialize", ex.Message);
            }
        }
Exemplo n.º 2
0
        protected override void OnStart(string[] args)
        {
            try
            {
                log.Information("RequestManagerService OnStart. Versión: {0}", !string.IsNullOrEmpty(_version) ? _version : "null");
                log.Information("RequestManagerService OnStart. Configuración del servicio: {0}", !string.IsNullOrEmpty(_configurationInfo) ? _configurationInfo : "null");

                this.Inicialize();
                _proveedores.Start();
                //this.StartSignalR();

                //CargarConfiguracionReinicioValidacionesSignalR();
            }catch (Exception ex)
            {
                System.Diagnostics.EventLog.WriteEntry("PrensasService-OnStart", ex.Message);
            }
        }