/// <summary> /// Initializes a new instance of the <see cref="EnqueueJobCommand"/> /// class. /// </summary> /// <param name="source">The <see cref="IJobSource"/> providing the /// information on the jobs to deploy.</param> /// <exception cref="ArgumentNullException">source is null.</exception> public EnqueueJobCommand(IJobSource source) { if (source == null) { throw new ArgumentNullException("source"); } _source = source; _source.PropertyChanged += _sourcePropertyChanged; }
public void RemoveJobSource(IJobSource jobSource) { Debug.Assert(m_jobSources.Contains(jobSource)); m_jobSources.Remove(jobSource); }
public void AddJobSource(IJobSource jobSource) { Debug.Assert(m_jobSources.Contains(jobSource) == false); m_jobSources.Add(jobSource); }
public SchedulerJob(IJobSource jobSource) { _jobSource = jobSource; }