public ScheduleTaskService(ILogger <ScheduleTaskService> logger, AixScheduleTaskOptions options, IScheduleTaskLifetime scheduleTaskLifetime, IAixScheduleTaskRepository aixScheduleTaskRepository, IAixDistributionLockRepository aixDistributionLockRepository, IScheduleTaskDistributedLock scheduleTaskDistributedLock, IAixScheduleTaskLogRepository aixScheduleTaskLogRepository, MyMultithreadTaskExecutor taskExecutor, ScheduleTaskExecutor scheduleTaskExecutor, ExpireLogExecutor expireLogExecutor, ErrorTaskExecutor errorTaskExecutor ) { _logger = logger; _options = options; _scheduleTaskLifetime = scheduleTaskLifetime; PreReadSecond = _options.PreReadSecond; _aixScheduleTaskRepository = aixScheduleTaskRepository; _aixDistributionLockRepository = aixDistributionLockRepository; _scheduleTaskDistributedLock = scheduleTaskDistributedLock; _aixScheduleTaskLogRepository = aixScheduleTaskLogRepository; _taskExecutor = taskExecutor; _scheduleTaskExecutor = scheduleTaskExecutor; _expireLogExecutor = expireLogExecutor; _errorTaskExecutor = errorTaskExecutor; }
public ScheduleTaskDistributedLockDBImpl(IAixDistributionLockRepository aixDistributionLockRepository, IScheduleTaskLifetime scheduleTaskLifetime) { _aixDistributionLockRepository = aixDistributionLockRepository; _scheduleTaskLifetime = scheduleTaskLifetime; }