Beispiel #1
0
 private void timer_Tick(object sender, EventArgs e)
 {
     ServiceLog.LogInfo("Executor - Início da Execução do serviço");
     EmExecucao = true;
     try
     {
         Monitor.Instance.Start();
         //new BS.Integracao().Executar(false);
     }
     finally
     {
         EmExecucao = false;
         ServiceLog.LogInfo("Executor - Final da Execução do serviço");
     }
 }
Beispiel #2
0
 private void timer_Tick(object sender, EventArgs e)
 {
     ServiceLog.LogInfo("Consumidor - Tempo de execução atingido");
     if (!EmExecucao)
     {
         ServiceLog.LogInfo("Consumidor - Início da Execução do serviço");
         //EmExecucao = true;
         try
         {
             Monitor.Instance.Start();
             //new BS.Integracao().Executar(true);
         }
         finally
         {
             EmExecucao = false;
             ServiceLog.LogInfo("Consumidor - Final da Execução do serviço");
         }
     }
     else
     {
         ServiceLog.LogInfo("Consumidor - Serviço está em processo de execução");
     }
 }
Beispiel #3
0
 protected override void OnStart(string[] args)
 {
     ServiceLog.LogInfo("Consumidor - Iniciando Serviço");
     this.timer.Start();
     ServiceLog.LogInfo("Consumidor - Serviço iniciado");
 }