Exemplo n.º 1
0
 public JobHandler(Guid jobId, ICronJob cronJob, string cronExpression, IServiceScopeFactory serviceScopeFactory)
 {
     JobId                = jobId;
     _cronJob             = cronJob;
     _serviceScopeFactory = serviceScopeFactory;
     _cronParser          = new CronParser(new CronDateTimeService());
     _cronExpression      = _cronParser.Parse(cronExpression);
 }
Exemplo n.º 2
0
 public Scheduler(CronParser cronParser,
                  ICronDateTimeService cronDateTimeService,
                  ILogger <Scheduler> logger)
 {
     _cronParser          = cronParser;
     _cronDateTimeService = cronDateTimeService;
     _logger = logger;
 }