Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public FileMonitoringJob()
 {
     jobSetting = new FileJobSetting();
 }