protected override void DoWork() { try { var program = new WorkerService(); program.DoASubscription(); } catch (Exception exception) { Console.WriteLine(string.Format(">>>>>>>>> ERROR WITH EXCEPTION {0}", exception.Message)); } }
public static void Main(string[] args) { var worker = new WorkerService (); worker.Start (); }