Ejemplo n.º 1
0
        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;
 }
Ejemplo n.º 3
0
 public PollingJobDeactivator(IPollingJobs jobs, PollingJobLatch latch)
 {
     _jobs  = jobs;
     _latch = latch;
 }