Esempio n. 1
0
 static void Main(String[] args)
 {
     if ((args.Length > 0) && (args[0] == "/console"))
     {
         // Run the console version here
         service = new IZService();
         Console.WriteLine("Service is available. " +
                           "Press <ENTER> to exit.");
         Console.ReadLine();
     }
     else
     {
         ServiceBase.Run(new App());
         //  ServicesToRun = new ServiceBase[] { new IZService() };
         //  ServiceBase.Run(ServicesToRun);
     }
 }
Esempio n. 2
0
 public DialogClientService(IZService service)
 {
     Service = service;
 }
Esempio n. 3
0
 protected override void OnStart(string[] args)
 {
     base.OnStart(args);
     service = new IZService();
 }