You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
535 B

  1. using FluentScheduler;
  2. using Sevomin.Models.Helpers.ScheduledTasks;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Sevomin.Models.Helpers
  9. {
  10. public class SevominRegistry : Registry
  11. {
  12. public SevominRegistry()
  13. {
  14. Schedule<NewApplication>().ToRunEvery(2).Days().At(8, 0);
  15. Schedule<ExpiringJob>().ToRunEvery(1).Days().At(8, 10);
  16. Schedule<NewJob>().ToRunEvery(2).Days().At(8, 20);
  17. }
  18. }
  19. }