Ejemplo n.º 1
0
 public async Task Schedule(JobInfo jobInfo)
 {
     jobInfo.AssertValid();
     this.ResolveJob(jobInfo);
     this.ScheduleNative(jobInfo);
     await this.repository.Set(jobInfo.Identifier, PersistJobInfo.ToPersist(jobInfo));
 }
Ejemplo n.º 2
0
        public virtual async Task Schedule(JobInfo jobInfo)
        {
            jobInfo.AssertValid();

            // we do a force resolve here to ensure all is good
            this.ResolveJob(jobInfo);
            await this.Repository.Set(jobInfo.Identifier, jobInfo);
        }