Switched out the schedulers, this seems to be a better implimentation to the previous and is easier to add new "jobs" in.

This commit is contained in:
tidusjar 2016-04-19 13:37:58 +01:00
commit 9c61f909de
32 changed files with 1237 additions and 1091 deletions

View file

@ -25,36 +25,33 @@
// ************************************************************************/
#endregion
using System;
using FluentScheduler;
using NLog;
using Owin;
using PlexRequests.UI.Jobs;
using TaskFactory = FluentScheduler.TaskFactory;
namespace PlexRequests.UI
{
public class Startup
{
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
private static Logger Log = LogManager.GetCurrentClassLogger();
public void Configuration(IAppBuilder app)
{
try
{
app.UseNancy();
var scheduler = new Scheduler();
scheduler.StartScheduler();
}
catch (Exception exception)
{
Log.Fatal(exception);
throw;
}
}
}
}
}