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