public async Task Schedule(JobInfo jobInfo) { jobInfo.AssertValid(); this.ResolveJob(jobInfo); this.ScheduleNative(jobInfo); await this.repository.Set(jobInfo.Identifier, PersistJobInfo.ToPersist(jobInfo)); }
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); }