Exemplo n.º 1
0
        public ActionResult Process()
        {
            var processQueue = false;

            if (_jobsQueueManager.GetJobsCount() > 0)
            {
                _services.Notifier.Information(T("Processing is in progress."));
                processQueue = true;
                _jobsQueueProcessor.ProcessQueue(1, 1);
            }
            else
            {
                _services.Notifier.Information(T("Processing has been completed."));
            }

            return(RedirectToAction("List", new { processQueue }));
        }
Exemplo n.º 2
0
 public void Sweep()
 {
     _jobsQueueProcessor.ProcessQueue(1, uint.MaxValue);
 }
 public void Sweep()
 {
     _jobsQueueProcessor.ProcessQueue();
 }
Exemplo n.º 4
0
 public ActionResult Process()
 {
     _jobsQueueProcessor.ProcessQueue();
     _services.Notifier.Information(T("Processing has started."));
     return(RedirectToAction("List"));
 }