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); }
public Scheduler(CronParser cronParser, ICronDateTimeService cronDateTimeService, ILogger <Scheduler> logger) { _cronParser = cronParser; _cronDateTimeService = cronDateTimeService; _logger = logger; }