static void Main(string[] args) { if (args.Length == 0) { var servicesToRun = new ServiceBase[] { new QueueProcessor(), new NotificationProcessor() }; ServiceBase.Run(servicesToRun); } else { NotificationStarter.Start(); Starter.Start(); } }
protected override void OnStart(string[] args) { Starter.Start(); }