예제 #1
0
        public BackgroundJobManager(Shell.Infrastructure.Logging.ILogger logger, IScheduler sched)
        {
            _jobs = new Jobs();
            _logger = logger;
            _scheduler = sched;

            if (!_scheduler.IsStarted)
            {
                _scheduler.Start();
                _scheduler.AddGlobalJobListener(new QueueUpdateManager());
                QuartzNetWebConsole.Setup.Scheduler = () => _scheduler;
                QuartzNetWebConsole.Setup.Logger = new MemoryLogger(10000);
            }
        }
예제 #2
0
 public QueueController(ILogger logger, IBackgroundJobManager manager, IIdStore store)
     : base(store, logger)
 {
     _jobManager = manager;
     _jobs = new Jobs();
 }