protected override void OnStart(string[] args) { try { DataRequestJob FirstExecution = new DataRequestJob(); FirstExecution.Execute(null); DataRequestScheduler.ScheduleDataRequest(); } catch (Exception ex) { Log.LogException(ex); } }
protected override void OnStart(string[] args) { Log.LogInfoMessage("Starting service"); SetupWCFService(); try { DataRequestJob FirstExecution = new DataRequestJob(); FirstExecution.Execute(null); DataRequestScheduler.ScheduleDataRequest(); } catch (Exception ex) { Log.LogException(ex); } }