public BackgroundJobManager(MVC_Husk.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();
 }
예제 #3
0
 public JobSpecs()
 {
     _jobs = new Jobs();
 }