Esempio n. 1
0
        public WorkerQueue(CompositeLogger logger, IHandlerPipeline pipeline, BusSettings settings, CancellationToken cancellationToken)
        {
            _logger            = logger;
            _pipeline          = pipeline;
            _settings          = settings;
            _cancellationToken = cancellationToken;

            foreach (var worker in _settings.Workers.AllWorkers)
            {
                AddQueue(worker.Name, worker.Parallelization);
            }

            DelayedJobs = InMemoryDelayedJobProcessor.ForQueue(this);
        }
Esempio n. 2
0
 public in_memory_delayed_jobs()
 {
     theDelayedJobs = InMemoryDelayedJobProcessor.ForQueue(this);
 }