예제 #1
0
    /// <summary>
    /// Callback to notify the work service to look for new jobs.
    /// Will be called async, from another thread, and should
    /// process the PopulateJobs method on another thread and
    /// return immediately.
    /// </summary>
    /// <param name="source"></param>
    /// <param name="waitSeconds"></param>
    public void FlagNewJobs(IProcessJobFactory source)
    {
        Logging.Log($"Flagging new jobs state for {source.GetType().Name}");

        Stopwatch watch = new Stopwatch("FlagNewJobs");

        _newJobsFlag = true;

        watch.Stop();
    }
예제 #2
0
 public void AddJobSource(IProcessJobFactory source)
 {
     Logging.Log($"Registered job processing source: {source.GetType().Name}");
     _jobSources.Add(source);
 }