static void Main(string[] args) { // ProcessorThread.ProcessWorkSchedule(); // ProcessorThread.ProcessBirthdaySMS(); //ProcessorThread.ScheduleFinancialMeetings(); //ProcessorThread.TestBuildingODBCConnections(); // return; ReportServiceHost host = new ReportServiceHost(); Console.WriteLine("Service is running"); //var processorThread = new ProcessorThread(); //Console.WriteLine("ProcessorThread is running"); Console.ReadLine(); host.Terminated = true; }
protected override void OnStart(string[] args) { _service = new ReportServiceHost(); _ProcessorThread = new ProcessorThread(); }