public void AddJob(Job job) { lock (jobl.SyncRoot) { jobl.Add(job); } }
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); } }
public int Add(Job value) { return base.Add(value); }