public void ClearTrash() { db.DeleteAllTimedOutTrash(); BackgroundJob.Schedule(() => ClearTrash(), DateTime.Today.AddDays(1) - DateTime.Now); }
public void Schedule() { ProcessJobMethods <ScheduledJobAttribute>( (job) => BackgroundJob.Schedule(job.Expression, job.Attribute.EnqueueAt)); }
public void UpdateTierLevels() { db.UpdateTierForAll(); BackgroundJob.Schedule(() => UpdateTierLevels(), TimeSpan.FromSeconds(11)); }