private void OnExecute(IJobExecutionContext context) { Log4NetLogger.Instance.Info(string.Format("FileMonitoringJob with ID {0} Invoked.", jobSetting.Id)); try { jobSetting = (FileJobSetting)context.Get("JobSetting"); //TODO: Processing based on FileJobSetting and notification (DB and Live) HubProxy.Invoke(AppSettingsValues.EventToAdmin, true, "FileMonitoringJob Executed on " + DateTime.Now); } catch (Exception ex) { Log4NetLogger.Instance.Error(ex); } Log4NetLogger.Instance.Info(string.Format("FileMonitoringJob with ID {0} Completed.", jobSetting.Id)); }
public FileMonitoringJob() { jobSetting = new FileJobSetting(); }