Beispiel #1
0
 static int Main()
 {
     try
     {
         using (var daemon = new HonorSerialportDaemon())
         {
             daemon.RunMailCycle();
         }
         return(0);
     }
     catch (Exception exc)
     {
         Console.WriteLine(exc.ToString());
         return(1);
     }
 }
Beispiel #2
0
        static int Main()
        {
            try
            {
                using (var daemon = new HonorSerialportDaemon())
                {
                    daemon.RunMailCycle();
                }
                return 0;
            }
            catch (Exception exc)
            {

                Console.WriteLine(exc.ToString());
                return 1;
            }
        }
Beispiel #3
0
 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;
     }
 }
Beispiel #4
0
 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);
     }
 }
Beispiel #5
0
 public WCFCallbackHandler(HonorSerialportDaemon daemon)
 {
     _daemon = daemon;
     _timer  = new Timer(WatchDog, null, 15 * 1000, 2 * 1000);
 }
Beispiel #6
0
 public WCFCallbackHandler(HonorSerialportDaemon daemon)
 {
     _daemon = daemon;
     _timer = new Timer(WatchDog, null, 15 *1000, 2*1000);
 }