Exemple #1
0
 protected override void OnStart(string[] args)
 {
     try
     {
         DataRequestJob FirstExecution = new DataRequestJob();
         FirstExecution.Execute(null);
         DataRequestScheduler.ScheduleDataRequest();
     }
     catch (Exception ex)
     {
         Log.LogException(ex);
     }
 }
Exemple #2
0
        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);
            }
        }