public uint Register(ScheduledJob job) { lock (this._syncBlock) { // TODO : need lock job.Id = this.IncrementCount(); job.LastExecutedTime = DateTime.Now; this._jobs.Add(job); return(job.Id); } }
public void Unregister(ScheduledJob job) { this.Unregister(job.Id); }