コード例 #1
0
        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
ファイル: JobSpecs.cs プロジェクト: gerardo-flores/mvc-husk
 public JobSpecs()
 {
     _jobs = new Jobs();
 }