static int Main() { try { using (var daemon = new HonorSerialportDaemon()) { daemon.RunMailCycle(); } return(0); } catch (Exception exc) { Console.WriteLine(exc.ToString()); return(1); } }
static int Main() { try { using (var daemon = new HonorSerialportDaemon()) { daemon.RunMailCycle(); } return 0; } catch (Exception exc) { Console.WriteLine(exc.ToString()); return 1; } }
static int Main() { Console.WriteLine("SerialportGateDaemon " + Assembly.GetEntryAssembly().GetName().Version); try { using (var daemon = new HonorSerialportDaemon()) { daemon.RunMainCycle(); } return 0; } catch (Exception exc) { LogClass.Write(exc.Message); Console.WriteLine(exc.ToString()); LogClass.Write("Global Try-Catch triggered. Killing myself"); return 1; } }
static int Main() { Console.WriteLine("SerialportGateDaemon " + Assembly.GetEntryAssembly().GetName().Version); try { using (var daemon = new HonorSerialportDaemon()) { daemon.RunMainCycle(); } return(0); } catch (Exception exc) { LogClass.Write(exc.Message); Console.WriteLine(exc.ToString()); LogClass.Write("Global Try-Catch triggered. Killing myself"); return(1); } }
public WCFCallbackHandler(HonorSerialportDaemon daemon) { _daemon = daemon; _timer = new Timer(WatchDog, null, 15 * 1000, 2 * 1000); }
public WCFCallbackHandler(HonorSerialportDaemon daemon) { _daemon = daemon; _timer = new Timer(WatchDog, null, 15 *1000, 2*1000); }