Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 public void Unregister(ScheduledJob job)
 {
     this.Unregister(job.Id);
 }