예제 #1
0
        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;
        }
예제 #2
0
 public PollingJobDeactivator(IPollingJobs jobs, PollingJobLatch latch)
 {
     _jobs  = jobs;
     _latch = latch;
 }
예제 #3
0
 public PollingJobDeactivator(IPollingJobs jobs, PollingJobLatch latch)
 {
     _jobs = jobs;
     _latch = latch;
 }