public PollingJob(IServiceBus bus, IPollingJobLogger logger, TSettings settings, PollingJobDefinition definition, PollingJobLatch latch) { _bus = bus; _logger = logger; _settings = settings; _timer = new DefaultTimer(); _intervalSource = (Expression <Func <TSettings, double> >)definition.IntervalSource; _scheduledExecution = definition.ScheduledExecution; _latch = latch; _intervalFunc = _intervalSource.Compile(); }
public PollingJobDeactivator(IPollingJobs jobs, PollingJobLatch latch) { _jobs = jobs; _latch = latch; }