/[projects]/dao/DaoMqPump2/DaoMqPump2/MainProgram.cs
ViewVC logotype

Diff of /dao/DaoMqPump2/DaoMqPump2/MainProgram.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1986 by torben, Wed Jul 3 07:56:52 2013 UTC revision 2070 by torben, Wed Nov 13 10:09:10 2013 UTC
# Line 53  namespace DaoMqPump2 Line 53  namespace DaoMqPump2
53              if (args.Length == 1)              if (args.Length == 1)
54              {              {
55                  if (args[0] == "--debug")                  if (args[0] == "--debug")
56                  {                  {                    
57                      try                      try
58                      {                      {
59                            
60    
61                          TransportController controller = TransportController.getInstance();                          TransportController controller = TransportController.getInstance();
62    
63                            ElapsedTimer timer = new ElapsedTimer();
64                          controller.transportAllMessages();                          controller.transportAllMessages();
65    
66                            timer.stopAndPrint("debug run");
67    
68                            PumpService s = new PumpService();
69    
70                            s.startRemoteControl();
71                      }                      }
72                      catch (Exception e)                      catch (Exception e)
73                      {                      {
74                          Console.WriteLine("Error: " + e.Message);                          Console.WriteLine("Error: " + e.Message);
75                      }                      }
76    
77                        
78    
79    
80    
81                      Console.WriteLine("Press any key to continue");                      Console.WriteLine("Press any key to continue");
82                      Console.ReadKey(); //wait for user input                      Console.ReadKey(); //wait for user input
83                  }                  }
84                    else if (args[0] == "/i" || args[0] == "/u")
                 if (args[0] == "/i" || args[0] == "/u")  
85                  {                  {
86    
87                      bool undo;                      bool undo;
# Line 82  namespace DaoMqPump2 Line 95  namespace DaoMqPump2
95                      }                      }
96                      MyServiceInstaller.DoInstall(undo, new string[] { });                                      MyServiceInstaller.DoInstall(undo, new string[] { });                
97                  }                  }
98                    else
99                    {
100                        Console.WriteLine("DaoMqPumpv2 by THN");
101                        Console.WriteLine("Options:");
102                        Console.WriteLine("  --debug    start a single run debug session");
103                        Console.WriteLine("  /i         install as a service");
104                        Console.WriteLine("  /u         un-install service");
105                    }
106    
107              }              }
108              else              else

Legend:
Removed from v.1986  
changed lines
  Added in v.2070

  ViewVC Help
Powered by ViewVC 1.1.20