Exemplo n.º 1
0
        private void ConnectToHost()
        {
            emu.Connect();

            //Account for delays
            emu.Refresh(true, 1000);
        }
Exemplo n.º 2
0
 private bool ConnectToHost()
 {
     try
     {
         emu.Connect();
         emu.Refresh(true, 1000);
         return(true);
     }
     catch (Exception ex)
     {
         Reporter.ToLog(eLogLevel.ERROR, "Failed to connect to Mainframe source : Terminal.cs->ConnectToHost() ", ex);
         return(false);
     }
 }
Exemplo n.º 3
0
 private void ConnectToHost()
 {
     try
     {
         emu.Connect();
     }
     catch (TNHostException tnHostException)
     {
         log.Warn("Exceção TNHostException em terminal.ConnectToHost", tnHostException);
         emu_Disconnected(emu, tnHostException.Message + " - " + tnHostException.Reason);
     }
     catch (Exception e)
     {
         log.Error("Exceção não esperada em terminal.ConnectToHost", e);
         emu_Disconnected(emu, e.Message);
     }
 }