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); } }
public DialogClientService(IZService service) { Service = service; }
protected override void OnStart(string[] args) { base.OnStart(args); service = new IZService(); }