Exemple #1
0
        /// <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;
        }
Exemple #2
0
 public void RemoveJobSource(IJobSource jobSource)
 {
     Debug.Assert(m_jobSources.Contains(jobSource));
     m_jobSources.Remove(jobSource);
 }
Exemple #3
0
 public void AddJobSource(IJobSource jobSource)
 {
     Debug.Assert(m_jobSources.Contains(jobSource) == false);
     m_jobSources.Add(jobSource);
 }
Exemple #4
0
 public void RemoveJobSource(IJobSource jobSource)
 {
     Debug.Assert(m_jobSources.Contains(jobSource));
     m_jobSources.Remove(jobSource);
 }
Exemple #5
0
 public void AddJobSource(IJobSource jobSource)
 {
     Debug.Assert(m_jobSources.Contains(jobSource) == false);
     m_jobSources.Add(jobSource);
 }
Exemple #6
0
 public SchedulerJob(IJobSource jobSource)
 {
     _jobSource = jobSource;
 }