Пример #1
0
 public void AddJob(Job job)
 {
     lock (jobl.SyncRoot)
     {
         jobl.Add(job);
     }
 }
Пример #2
0
        public void AddJob(Job job)
        {
            int i;

            string path;

            if (job.Action == ActionType.Clone)
            {
                path = this.basepath;
            }
            else
            {
                path = Common.GetRepository(job.FullPath, this.basepath);
            }
            for (i = 0; i < this.el.Count; i++)
            {
                if(this.el[i].path == path){
                    this.el[i].AddJob(job);
                    break;
                }
            }
            if (i >= this.el.Count)
            {
                // Not found.

                JobExecuter je = new JobExecuter(path);
                je.git.parent = this.parent;
                this.el.Add(je);
                je.AddJob(job);
            }
        }
Пример #3
0
 public int Add(Job value)
 {
     return base.Add(value);
 }