Added completely awesome JobProvider. extremely easy to do async/timer tasks with ui status/notification already plugged in.

This commit is contained in:
kay.one 2011-04-20 00:44:13 -07:00
commit 9028e498ca
27 changed files with 677 additions and 444 deletions

View file

@ -3,22 +3,22 @@ using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NzbDrone.Core.Providers.Timers;
using NzbDrone.Core.Providers.Jobs;
namespace NzbDrone.Web.Controllers
{
public class TimersController : Controller
{
private readonly TimerProvider _timerProvider;
private readonly JobProvider _jobProvider;
public TimersController(TimerProvider timerProvider)
public TimersController(JobProvider jobProvider)
{
_timerProvider = timerProvider;
_jobProvider = jobProvider;
}
public ActionResult Index()
{
return View(_timerProvider.All());
return View(_jobProvider.All());
}