Beispiel #1
0
 public void AddStep(JobStep step)
 {
     if (step == null)
     {
         throw new Exception("Job step can not be null.");
     }
     else
     {
         _steps.Add(step);
     }
 }
Beispiel #2
0
        public Job(Guid jobId, string name, DataSource sourceDataSource, DataSource targetDataSource, JobStep step, bool isEnabled = true)
            : this(jobId, name, isEnabled)
        {
            AddDataSource(sourceDataSource, SyncSide.Source);

            AddDataSource(targetDataSource, SyncSide.Target);

            AddStep(step);
        }