Beispiel #1
0
        protected override void EnrichJobTaskBeforeExecution(JobTaskBase jobTask)
        {
            var sqlCmd = jobTask as SqlJobTask;
            if (sqlCmd != null)
            {
                SetConnection();

                sqlCmd.Connection = Connection;
                ApplyParameters(sqlCmd);
            }
        }
Beispiel #2
0
 private void TryExecuteJobTask(JobTaskBase jobTask)
 {
     try
     {
         jobTask.LoggerDelegate = LoggerDelegate;
         EnrichJobTaskBeforeExecution(jobTask);
         jobTask.Execute();
     }
     catch (Exception e)
     {
         LoggerDelegate.LogError(jobTask.JobTaskNameWithOrder(), e);
         throw;
     }
 }
Beispiel #3
0
 public bool IsLogged(LogActivity logActivity, JobTaskBase jobTaskBase)
 {
     return IsLogged(logActivity, jobTaskBase.JobTaskNameWithOrder());
 }
Beispiel #4
0
 protected virtual void EnrichJobTaskBeforeExecution(JobTaskBase jobTask)
 {
 }